/* === login_view.css — Premium Edition === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg-void, #060b14);
    color: var(--text-primary, #eef2f7);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    background-image:
        radial-gradient(ellipse 70% 50% at 20% 20%, rgba(79,110,247,0.1) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,229,160,0.08) 0%, transparent 55%);
}

.header {
    background: rgba(6,11,20,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.75rem 0;
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.header-logo img { height: 36px; }
.header-back {
    color: rgba(122,154,184,0.8);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex; align-items: center; gap: 0.4rem;
    transition: color 0.2s;
}
.header-back:hover { color: var(--primary, #00e5a0); }

.page-body {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1rem;
}
.login-wrapper { width: 100%; max-width: 440px; }

.login-headline { text-align: center; margin-bottom: 2rem; }
.login-headline h1 {
    font-size: 1.9rem; font-weight: 800;
    color: #fff; letter-spacing: -0.04em;
    margin-bottom: 0.45rem;
}
.login-headline p { color: rgba(122,154,184,0.85); font-size: 0.92rem; margin: 0; }
.headline-accent {
    display: block; width: 32px; height: 2.5px;
    background: linear-gradient(90deg, var(--primary, #00e5a0), #4f6ef7);
    border-radius: 999px;
    margin: 0.7rem auto 0;
}

/* Alerts */
.alert-modern {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.1rem;
    font-size: 0.86rem;
    animation: alertIn 0.22s ease;
}
@keyframes alertIn { from { opacity:0; transform: translateY(-5px); } to { opacity:1; transform: translateY(0); } }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: #fca5a5; }
.alert-success { background: rgba(0,229,160,0.07);  border: 1px solid rgba(0,229,160,0.2);  color: #00e5a0; }
.alert-modern .alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-modern strong { display: block; margin-bottom: 0.1rem; font-weight: 700; }

/* Card */
.login-card {
    background: rgba(22, 32, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03) inset;
    position: relative; overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, #4f6ef7, var(--primary, #00e5a0));
}

/* Fields */
.field-group { margin-bottom: 1.15rem; }
.field-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 700;
    color: rgba(122,154,184,0.8);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin-bottom: 0.42rem;
}
.field-label i { color: #00e5a0; font-size: 0.72rem; }
.field-wrap { position: relative; }
.field-wrap .field-icon {
    position: absolute; left: 0.95rem; top: 50%;
    transform: translateY(-50%);
    color: rgba(61,84,112,0.9); font-size: 0.9rem;
    pointer-events: none; transition: color 0.2s;
}
.field-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.82rem 1rem 0.82rem 2.65rem;
    color: #eef2f7;
    font-size: 0.93rem; font-family: inherit;
    transition: all 0.2s; outline: none; -webkit-appearance: none;
}
.field-wrap input::placeholder { color: rgba(61,84,112,0.9); }
.field-wrap input:focus {
    border-color: rgba(0,229,160,0.3);
    background: rgba(0,229,160,0.03);
    box-shadow: 0 0 0 3px rgba(0,229,160,0.07);
}
.field-wrap:focus-within .field-icon { color: #00e5a0; }
.toggle-pass {
    position: absolute; right: 0.95rem; top: 50%;
    transform: translateY(-50%);
    color: rgba(61,84,112,0.9); cursor: pointer; font-size: 0.87rem;
    background: none; border: none;
    display: flex; align-items: center; transition: color 0.2s;
}
.toggle-pass:hover { color: #00e5a0; }
.forgot-link {
    display: block; text-align: right; font-size: 0.8rem;
    color: rgba(122,154,184,0.7); text-decoration: none;
    margin-top: 0.38rem; transition: color 0.2s;
}
.forgot-link:hover { color: #00e5a0; }

/* Buttons */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #00e5a0, #00c488);
    color: #04180e; border: none;
    border-radius: 999px; padding: 0.9rem;
    font-size: 0.97rem; font-weight: 800;
    font-family: inherit; cursor: pointer;
    transition: all 0.22s; margin-top: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 50px; letter-spacing: -0.01em;
    box-shadow: 0 4px 18px rgba(0,229,160,0.28);
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,229,160,0.38); }
.btn-login:active { transform: scale(0.97); }
.divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.4rem 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.divider span { color: rgba(122,154,184,0.6); font-size: 0.78rem; white-space: nowrap; }
.btn-register {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px; padding: 0.85rem;
    font-size: 0.92rem; font-weight: 600; font-family: inherit;
    color: #eef2f7; cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 48px; text-decoration: none; text-align: center;
}
.btn-register:hover { border-color: rgba(0,229,160,0.3); color: #00e5a0; background: rgba(0,229,160,0.04); }

/* Trust */
.trust-row {
    display: flex; align-items: center; justify-content: center;
    gap: 1.25rem; margin-top: 1.75rem; flex-wrap: wrap;
}
.trust-badge {
    display: flex; align-items: center; gap: 0.32rem;
    color: rgba(122,154,184,0.65); font-size: 0.76rem;
}
.trust-badge i { color: #00e5a0; font-size: 0.72rem; }

.page-footer {
    text-align: center; padding: 1.25rem 1rem;
    color: rgba(122,154,184,0.55); font-size: 0.78rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.page-footer a { color: rgba(122,154,184,0.55); text-decoration: none; }
.page-footer a:hover { color: #00e5a0; }

@media (max-width: 480px) {
    .login-card { padding: 1.6rem 1.25rem; }
    .login-headline h1 { font-size: 1.55rem; }
}
