/* ===== AUTH PAGES CSS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0e1a;
    color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

/* Animated blobs */
.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 10s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #1ab5b5, #0a7c7c);
    top: -150px; left: -150px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #162752, #1e3a70);
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    padding: 24px;
}

/* Card */
.auth-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    max-height: 70px;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(26,181,181,0.4));
}

/* Title */
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 28px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.alert i { margin-top: 2px; flex-shrink: 0; }

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group label i { margin-right: 5px; color: #1ab5b5; }

.form-group input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 0.95rem;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus {
    border-color: #1ab5b5;
    box-shadow: 0 0 0 3px rgba(26,181,181,0.15);
}

.form-group input::placeholder { color: #475569; }

/* Password toggle */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 46px; }

.toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 0;
}

.toggle-pass:hover { color: #1ab5b5; }

/* Primary button */
.btn-primary {
    margin-top: 6px;
    padding: 15px;
    background: linear-gradient(135deg, #1ab5b5, #0d8a8a);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 8px 24px rgba(26,181,181,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(26,181,181,0.45);
    filter: brightness(1.1);
}

.btn-primary:active { transform: translateY(0); }

/* Switch link */
.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-switch a {
    color: #1ab5b5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch a:hover { color: #22d3d3; text-decoration: underline; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 30px 22px; }
    .auth-title { font-size: 1.35rem; }
}
