.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

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

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6C63FF, transparent);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #43CBFF, transparent);
    bottom: -80px;
    right: -80px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, 20px) scale(1.05); }
}

/* card */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 1.5rem;
}

.auth-card {
    background: rgba(22, 22, 40, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6C63FF, #43CBFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

/* alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-alert strong { display: block; margin-bottom: 0.2rem; }

.auth-alert--danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ff8a94;
}

.auth-alert--warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffd35a;
}

.alert-icon { font-size: 1.2rem; flex-shrink: 0; }

/* form */
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 0.95rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 12px;
    padding: 0.8rem 2.8rem 0.8rem 2.6rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

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

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.input-wrapper input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.toggle-pw {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0.2rem;
}

.toggle-pw:hover { opacity: 1; }

.btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* cooldown progress bar */
.cooldown-bar-wrap {
    margin-top: 1.25rem;
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 99px;
    overflow: hidden;
}

.cooldown-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4d4d, #ff8a94);
    border-radius: 99px;
    width: 100%;
    transform-origin: left;
    animation-name: drain;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
