:root {
    --auth-bg-1: #0b1220;
    --auth-bg-2: #0f172a;
    --auth-card: #ffffff;
    --auth-border: #e5e7eb;
    --auth-text: #0f172a;
    --auth-muted: #475569;
    --auth-accent-1: #f97316;
    --auth-accent-2: #6366f1;
    --auth-accent-3: #06b6d4;
    --auth-ring: rgba(99, 102, 241, 0.22);
}

body.login-page {
    background: #ffffff;
}

body.login-page .public-navbar {
    background: #ffffff;
    backdrop-filter: none;
}

body.login-page #app {
    display: flex;
    flex-direction: column;
}

body.login-page .screen {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    justify-items: center;
}

body.login-page .auth-layout.auth-layout-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
    justify-items: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

body.login-page .auth-layout.auth-layout-single {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

body.login-page .auth-layout.auth-layout-single .login-container {
    width: 100%;
    max-width: 900px;
    overflow-x: hidden;
}

.auth-panel {
    border-radius: 18px;
    padding: 28px 26px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background:
        radial-gradient(900px 520px at 20% 10%, rgba(99, 102, 241, 0.30) 0%, transparent 55%),
        radial-gradient(700px 420px at 80% 25%, rgba(236, 72, 153, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, var(--auth-bg-1), var(--auth-bg-2));
    color: #e5e7eb;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-panel-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.auth-panel-subtitle {
    margin: 0 0 16px;
    color: rgba(226, 232, 240, 0.85);
    font-size: 14px;
    line-height: 1.5;
}

.auth-panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.auth-panel-list li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.9);
}

.auth-panel-list .auth-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.9);
    box-shadow: 0 0 0 4px rgba(226, 232, 240, 0.12);
    flex: 0 0 auto;
}

.auth-panel-footer {
    margin-top: 18px;
    font-size: 12px;
    color: rgba(226, 232, 240, 0.75);
}

body.login-page .login-container {
    border-radius: 18px;
    background: var(--auth-card);
    border: 1px solid var(--auth-border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 40px;
    position: relative;
    overflow: visible;
    overflow-x: hidden;
}

body.login-page .login-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--auth-accent-1), var(--auth-accent-2), var(--auth-accent-3));
}

body.login-page .login-container::after {
    content: '';
    position: absolute;
    inset: -80px -120px auto auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.16), transparent 60%);
    pointer-events: none;
}

body.login-page .login-container form {
    gap: 12px;
}

.auth-head {
    margin-bottom: 14px;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--auth-text);
    text-align: left;
}

.auth-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--auth-muted);
    line-height: 1.45;
}

.auth-subtitle {
    margin-top: 8px;
    color: #6b7280;
    max-width: 900px;
    text-align: center;
}

.auth-row {
    display: grid;
    gap: 8px;
}

.auth-row.inline {
    grid-template-columns: 1fr;
}

body.login-page .login-container input,
body.login-page .login-container select {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.95);
}

body.login-page .login-container input:focus,
body.login-page .login-container select:focus {
    border-color: rgba(99, 102, 241, 0.9);
    box-shadow: 0 0 0 4px var(--auth-ring);
}

body.login-page .switch-form {
    margin-top: auto;
    background: white;
}

body.login-page .switch-form a {
    color: var(--auth-accent-2);
    text-decoration: none;
    font-weight: 600;
}

body.login-page .switch-form a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.login-page .login-container button {
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

body.login-page .login-container button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

body.login-page .select-btn {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

body.login-page .select-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

body.login-page .account-type-card {
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 280px;
}

body.login-page .account-type-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.8), rgba(236, 72, 153, 0.8), rgba(6, 182, 212, 0.8));
    opacity: 0.75;
}

body.login-page .account-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

body.login-page .toggle-password {
    opacity: 0.55;
}

body.login-page .toggle-password:hover {
    opacity: 0.95;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.account-type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

#register-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.auth-layout-single {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.account-type-card {
    padding: 25px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.account-type-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 12px 0 8px;
}

.account-type-card > p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
}

.account-type-card .account-icon {
    font-size: 40px;
    line-height: 1;
}

.account-type-card .account-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
}

.account-type-card .account-features li {
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
}

.account-type-card .select-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-top: auto;
}

.card-list {
    margin-top: 18px;
}

.homepage-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15,23,42,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(15,23,42,0.14);
}

.section > p {
    line-height: 1.75;
}

body.login-page .login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.account-type-selector {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 900px;
        padding: 0 16px;
    }

    body.login-page .login-container {
        padding: 26px 18px;
    }

    .homepage-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.login-page .auth-layout.auth-layout-single .login-container {
        max-width: 95%;
        max-height: none;
        overflow-y: visible;
    }

    .account-type-selector {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .homepage-grid-3 {
        grid-template-columns: 1fr;
    }

    .account-type-selector {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.login-page .auth-layout.auth-layout-single .login-container {
        max-height: none;
        overflow-y: visible;
        max-width: 100%;
        padding: 20px 16px;
    }

    body.login-page .account-type-card {
        min-height: auto;
        padding: 20px;
    }

    body.login-page .login-container {
        max-width: 100%;
        margin: 10px;
        padding: 20px 16px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    body.login-page .auth-layout.auth-layout-single .login-container {
        max-height: none;
        overflow-y: visible;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 16px 12px;
    }

    body.login-page .login-container {
        max-width: 100%;
        margin: 0;
        padding: 16px 12px;
        border-radius: 0;
    }

    body.login-page .account-type-card {
        min-height: auto;
        padding: 16px;
    }

    body.login-page .account-type-card h3 {
        font-size: 16px;
    }

    body.login-page .account-type-card .account-icon {
        font-size: 32px;
    }

    body.login-page .account-type-card .account-features li {
        font-size: 12px;
        padding: 4px 0;
    }

    body.login-page .account-type-card .select-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }
}
