/* ── Login Page CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --primary: #00d4aa;
    --primary-dark: #00b894;
    --accent: #ff6b9d;
    --accent2: #a78bfa;
    --bg-dark: #040d1a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.09);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f8ff;
    --text-secondary: rgba(240, 248, 255, 0.65);
    --text-muted: rgba(240, 248, 255, 0.38);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 10% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 85% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-wrap {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 170, 0.06);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary);
}

.login-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.login-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label-l {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 13px 16px;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: all 0.25s;
}

.form-input:focus {
    border-color: rgba(0, 212, 170, 0.5);
    background: rgba(0, 212, 170, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.error-msg {
    color: #ff6b9d;
    font-size: 0.78rem;
    margin-top: 5px;
    display: none;
}

.error-msg.show {
    display: block;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #040d1a;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-glass);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.toggle-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}
