* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

header {
    background: #f5f7fb;
    border-bottom: 1px solid #f5f7fb;
    padding: 20px 40px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}
.hero {
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 35px;
}

.button {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.button:hover {
    background: #1d4ed8;
}

/* Flash messages */

.flash-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(380px, calc(100vw - 48px));
}

.flash {
    padding: 14px 18px;
    border-radius: 10px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    font-size: 15px;
    line-height: 1.4;
}

.flash-success {
    border-left: 4px solid #22c55e;
}

.flash-error {
    border-left: 4px solid #ef4444;
}

.flash-warning {
    border-left: 4px solid #f59e0b;
}

.flash-info {
    border-left: 4px solid #3b82f6;
}

/* Authentication */

.auth-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #2563eb;
    color: white;

    font-size: 26px;
    font-weight: bold;
}

.auth-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    color: #111827;
}

.auth-header p {
    margin: 0;
    color: #6b7280;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    font-size: 15px;
    font-family: inherit;

    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 13px 20px;

    border: none;
    border-radius: 8px;

    background: #2563eb;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.15s;
}

.auth-button:hover {
    background: #1d4ed8;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 28px 0;

    color: #9ca3af;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.google-button {
    width: 100%;
    padding: 12px 20px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: white;
    color: #374151;

    font-size: 15px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-footer {
    margin: 28px 0 0;
    text-align: center;

    color: #6b7280;
    font-size: 14px;
}

.auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.google-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.input-hint {
    margin: -2px 0 0;
    color: #6b7280;
    font-size: 12px;
}

.verification-code {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 4px;
}

.code-input {
    width: 52px;
    height: 60px;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: white;

    text-align: center;
    font-size: 24px;
    font-weight: 600;

    color: #111827;

    outline: none;

    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.code-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

@media (max-width: 480px) {
    .verification-code {
        gap: 6px;
    }

    .code-input {
        width: 44px;
        height: 54px;
        font-size: 22px;
    }
}

.resend-footer {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
}

.resend-footer form {
    margin: 0;
}

.text-button {
    padding: 0;
    border: none;
    background: none;
    color: #2563eb;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.text-button:hover {
    text-decoration: underline;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.dashboard-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.dashboard-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    padding: 16px 10px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    transition: width 0.2s ease;
}

.sidebar-brand {
    margin-bottom: 22px;
    padding: 0 8px;
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.sidebar-brand img {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 7px;
    color: #374151;
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.sidebar-link.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
}

.sidebar-toggle {
    position: absolute;
    right: -12px;
    bottom: 20px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sidebar-toggle:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.dashboard-sidebar.collapsed {
    width: 56px;
    padding-left: 8px;
    padding-right: 8px;
}

.dashboard-sidebar.collapsed .sidebar-brand {
    padding: 0;
}

.dashboard-sidebar.collapsed .sidebar-brand a {
    justify-content: center;
}

.dashboard-sidebar.collapsed .sidebar-brand span,
.dashboard-sidebar.collapsed .sidebar-text {
    display: none;
}

.dashboard-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.dashboard-sidebar.collapsed .sidebar-toggle {
    transform: rotate(180deg);
}

.dashboard-main {
    flex: 1;
    padding: 32px;
}

.dashboard-main h1 {
    margin-top: 0;
}

.dashboard-placeholder {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.dashboard-page {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar-icon {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
}

.sidebar-icon img {
    position: absolute;
    inset: 0;
    width: 20px;
    height: 20px;
    display: block;
}

.sidebar-icon .icon-normal {
    display: block;
}

.sidebar-icon .icon-hover,
.sidebar-icon .icon-selected {
    display: none;
}

.sidebar-link:hover .icon-normal {
    display: none;
}

.sidebar-link:hover .icon-hover {
    display: block;
}

.sidebar-link.active .icon-normal {
    display: none;
}

.sidebar-link.active .icon-hover {
    display: none;
}

.sidebar-link.active .icon-selected {
    display: block;
}

/* Logout */

.sidebar-logout:hover .icon-normal {
    display: none;
}

.sidebar-logout:hover .icon-hover {
    display: block;
}

.sidebar-logout:hover {
    color: #DC2626;
    background: #FEF2F2;
}

.sidebar-logout:hover .icon-normal {
    display: none;
}

.sidebar-logout:hover .icon-hover {
    display: block;
}

/* =========================================================
   GradeLinked Landing Page
   ========================================================= */

.landing-page {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    color: #111827;
}


/* =========================================================
   Navigation
   ========================================================= */

.landing-nav {
    width: 100%;
    height: 76px;
    padding: 0 48px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.landing-nav-links a:hover {
    color: #111827;
}

.landing-nav-button {
    padding: 10px 18px;
    border-radius: 8px;

    background: #2563eb;
    color: #ffffff !important;
}

.landing-nav-button:hover {
    background: #1D4ED8;
}


/* =========================================================
   Hero
   ========================================================= */

.landing-hero {
    width: 100%;
    min-height: calc(100vh - 76px);
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    gap: 70px;
    padding: 80px 8vw 110px;
}

.landing-hero-content {
    max-width: 650px;
    margin-left: auto;
}

.landing-eyebrow {
    margin-bottom: 18px;

    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero h1 {
    margin: 0;

    color: #111827;
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.landing-hero h1 span {
    color: #2563eb;
}

.landing-hero p {
    max-width: 570px;
    margin: 28px 0 0;

    color: #6b7280;
    font-size: 19px;
    line-height: 1.7;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.landing-primary-button,
.landing-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 13px 22px;
    border-radius: 9px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.landing-primary-button {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.landing-primary-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.landing-secondary-button {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.landing-secondary-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}


/* =========================================================
   Dashboard Preview
   ========================================================= */

.landing-preview {
    position: relative;
    width: 100%;
    max-width: 750px;
}

.landing-preview::before {
    content: "";

    position: absolute;
    width: 420px;
    height: 420px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: #eff6ff;
    border-radius: 50%;

    filter: blur(10px);
}

.landing-preview-window {
    position: relative;
    z-index: 1;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 25px 60px rgba(17, 24, 39, 0.12),
        0 5px 15px rgba(17, 24, 39, 0.05);

    transform: perspective(1200px) rotateY(-3deg);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.landing-preview-window:hover {
    transform: perspective(1200px) rotateY(0deg) translateY(-4px);

    box-shadow:
        0 30px 70px rgba(17, 24, 39, 0.15),
        0 8px 20px rgba(17, 24, 39, 0.06);
}

.landing-preview-bar {
    height: 38px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding: 0 14px;

    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.landing-preview-bar span {
    width: 9px;
    height: 9px;

    border-radius: 50%;
    background: #d1d5db;
}

.landing-preview-image {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.landing-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef4ff
        );

    color: #6b7280;
    text-align: center;
}

.landing-image-placeholder strong {
    display: block;

    margin-bottom: 6px;

    color: #374151;
    font-size: 18px;
}

.landing-image-placeholder small {
    font-size: 14px;
}


/* =========================================================
   Features
   ========================================================= */

.landing-features {
    width: 100%;
    box-sizing: border-box;

    padding: 110px 8vw;

    background: #f8fafc;
}

.landing-section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.landing-section-heading h2 {
    margin: 0;

    color: #111827;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.landing-section-heading p {
    margin: 20px 0 0;

    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-feature-card {
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);

    border-color: #dbeafe;

    box-shadow:
        0 15px 35px rgba(17, 24, 39, 0.08);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    background: #eff6ff;
    border-radius: 10px;

    font-size: 23px;
}

.landing-feature-card h3 {
    margin: 0;

    color: #111827;
    font-size: 20px;
    font-weight: 700;
}

.landing-feature-card p {
    margin: 12px 0 0;

    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   Bottom CTA
   ========================================================= */

.landing-cta {
    width: calc(100% - 16vw);
    box-sizing: border-box;

    margin: 40px 8vw 100px;
    padding: 80px 40px;

    text-align: center;

    background: #111827;
    border-radius: 18px;
}

.landing-cta h2 {
    margin: 0;

    color: #ffffff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.landing-cta p {
    margin: 18px 0 30px;

    color: #9ca3af;
    font-size: 17px;
}


/* =========================================================
   Footer
   ========================================================= */

.landing-footer {
    width: 100%;
    box-sizing: border-box;

    padding: 28px 8vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid #e5e7eb;

    color: #9ca3af;
    font-size: 14px;
}

.landing-footer a {
    color: #6b7280;
    text-decoration: none;

    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: #111827;
}


/* =========================================================
   Full-Page Reset
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 850px) {

    .landing-nav {
        width: 100%;
        height: 70px;
        padding: 0 20px;
    }

    .landing-nav-links {
        gap: 12px;
    }

    .landing-nav-links > a:not(.landing-nav-button) {
        display: none;
    }

    .landing-hero {
        width: 100%;

        grid-template-columns: 1fr;
        gap: 55px;

        min-height: auto;

        padding: 65px 24px 80px;
    }

    .landing-hero-content {
        max-width: none;
        margin: 0;
    }

    .landing-hero h1 {
        font-size: clamp(42px, 11vw, 62px);
    }

    .landing-hero p {
        font-size: 17px;
    }

    .landing-actions {
        flex-wrap: wrap;
    }

    .landing-preview {
        max-width: none;
    }

    .landing-preview-window {
        transform: none;
    }

    .landing-preview-window:hover {
        transform: translateY(-3px);
    }

    .landing-features {
        padding: 80px 24px;
    }

    .landing-section-heading {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        width: calc(100% - 48px);
        margin: 40px 24px 80px;
        padding: 60px 24px;
    }

    .landing-footer {
        padding: 28px 24px;

        flex-direction: column;
        gap: 12px;

        text-align: center;
    }
}


/* =========================================================
   Small Phones
   ========================================================= */

@media (max-width: 500px) {

    .landing-brand span {
        font-size: 18px;
    }

    .landing-nav-button {
        padding: 9px 14px;
        font-size: 14px !important;
    }

    .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-primary-button,
    .landing-secondary-button {
        width: 100%;
        box-sizing: border-box;
    }

    .landing-feature-card {
        padding: 26px;
    }
}