@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Syne:wght@600;700&display=swap');

:root {
    --primary-bg: #0f1923;
    --sidebar-text: #ffffff;
    --main-bg: #ede9d9;
    --card-header: #2cc0b6;
    --card-body: #faf8f1;
    --input-bg: #eef4ff;
    --btn-bg: #2cc0b6;
    --btn-hover: #1d9e95;
    --accent: #2cc0b6;
    --text-dark: #2a3a4a;
    --text-muted: #5a7a8a;
}

* { box-sizing: border-box; }

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    background: #000 url('../../images/reportyo_bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

/* ── Wrapper ── */
.login-wrapper {
    display: flex;
    width: 60vw;
    min-width: 320px;
    max-width: 740px;
    height: auto;
    min-height: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Sidebar ── */
.sidebar {
    width: 42%;
    background: var(--primary-bg);
    color: var(--sidebar-text);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44, 192, 182, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.brand { margin-bottom: 2px; }

.sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
}

.sidebar-title .blue-text { color: var(--accent); }

.sidebar-subtitle {
    font-size: 9.5px;
    color: #4a6a7a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    margin-top: 4px;
}

.sidebar-headline {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.4;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 400;
    color: #7a9aaa;
}

.feature-icon {
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 12px;
    height: 12px;
}

/* ── App Store Section ── */
.app-store-section {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #1e3040;
}

.app-store-label {
    font-size: 9px;
    color: #3a5565;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.app-store-buttons {
    display: flex;
    gap: 7px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a2d3a;
    border: 1px solid #2a4050;
    border-radius: 7px;
    padding: 6px 9px;
    text-decoration: none;
    flex: 1;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.app-store-btn:hover {
    border-color: var(--accent);
    background: #1e3545;
}

.app-store-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--accent);
}

.app-store-btn-text {
    display: flex;
    flex-direction: column;
}

.app-store-btn-sub {
    font-size: 8px;
    color: #5a7a8a;
    line-height: 1;
    margin-bottom: 1px;
}

.app-store-btn-name {
    font-size: 10px;
    font-weight: 600;
    color: #d0dde6;
    line-height: 1;
}

.sidebar-copyright {
    margin-top: 10px;
    font-size: 9px;
    color: #2a4050;
}

.sidebar-copyright a {
    color: var(--accent);
    text-decoration: none;
}

/* ── Main Content ── */
.main-content {
    width: 58%;
    background: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.main-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    gap: 10px;
}

/* Network overlay */
.network-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* Language dropdown */
.dropdown {
    position: absolute !important;
    top: 8px !important;
    right: 10px !important;
    z-index: 100;
}

.dropdown > a {
    color: #444 !important;
    text-decoration: none;
    display: flex !important;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.88) !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    font-size: 10px !important;
    font-weight: 600;
}

.dropdown > a span[style*="font-size: 18px"] {
    font-size: 13px !important;
}

.dropdown .dropdown-menu {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    min-width: 130px;
    padding: 4px 0;
}

.dropdown .dropdown-menu li a {
    padding: 7px 12px !important;
    font-size: 11px !important;
}

/* ── Login Card ── */
.login-card {
    width: 100%;
    max-width: 252px;
    background: var(--card-body);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: visible;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header {
    background: var(--card-header);
    height: 6px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.card-logo-overlap {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 58px;
    height: 70px;
    z-index: 10;
}

.card-body {
    padding: 40px 18px 16px;
    text-align: center;
}

.card-body h2 {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
    padding-top: 0 !important;
}

/* Inline padding-top spacer divs — collapse them */
.card-body > div[style*="padding-top"] {
    padding-top: 0 !important;
    display: none;
}

/* Alerts */
.alert {
    padding: 5px 8px !important;
    font-size: 10.5px !important;
    margin-bottom: 8px !important;
    border-radius: 6px !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* School code intro text */
.card-body > p {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

/* Form */
.login-form { text-align: left; }

.form-group {
    position: relative;
    margin-bottom: 7px;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background: #e8e8e8;
    border-radius: 6px 0 0 6px;
    font-size: 12px;
}

.form-control {
    width: 100%;
    height: 33px;
    padding: 0 10px 0 42px;
    background: var(--input-bg);
    border: 1px solid #d4e3ff;
    border-radius: 6px;
    font-size: 11.5px;
    color: #333;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(44, 192, 182, 0.15);
}

.btn-signin {
    width: 100%;
    height: 33px;
    background: var(--btn-bg);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    margin-top: 5px;
    box-shadow: 0 3px 0 #1d8a83;
    transition: background 0.2s ease;
}

.btn-signin:hover { background: var(--btn-hover); }
.btn-signin:active { transform: translateY(2px); box-shadow: 0 1px 0 #1d8a83; }

/* Change school link */
.change-school-link {
    display: block;
    margin-top: 10px;
    font-size: 10.5px;
    color: #555;
    text-decoration: underline;
    text-align: center;
}

/* ── Footer under card (right side) ── */
.login-page-footer {
    font-size: 9.5px;
    color: #999;
    text-align: center;
    width: 252px;
}

.login-page-footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Hide the old inline footer divs inside card-body */
.card-body > div:last-child[style*="margin-top: 30px"],
.card-body > div:last-child[style*="margin-top: 35px"] {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        min-width: 320px;
        width: 95vw;
        height: auto;
    }
    .sidebar { width: 100%; padding: 12px 20px; }
    .main-content { width: 100%; padding: 40px 20px 28px; }
    .login-card { max-width: 300px; }
    .login-page-footer { width: 300px; }
    .app-store-buttons { flex-direction: row; }
}