/*
 * auth.css
 * Additive stylesheet for the login screen only.
 * Reuses the design tokens (CSS variables) already defined in
 * dashboard_css/style.css so the login page matches the app shell.
 * Nothing in style.css is modified or overridden here.
 */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1a33, #16294f 55%, #0b1a33);
    font-family: inherit;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Soft drifting color blobs behind the card, echoing the public site's hero background so the auth pages don't feel like a bare form dropped on a plain page. */
.auth-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: auth-drift 20s ease-in-out infinite;
}

.auth-aurora span:nth-child(1) { width: 420px; height: 420px; background: #4f8cff; top: -10%; left: 5%; }
.auth-aurora span:nth-child(2) { width: 380px; height: 380px; background: #7c5cff; top: 30%; right: 0%; animation-delay: -7s; }
.auth-aurora span:nth-child(3) { width: 340px; height: 340px; background: #22c1c3; bottom: -12%; left: 30%; animation-delay: -13s; }

@keyframes auth-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(26px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 18px) scale(0.96); }
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.auth-brand i {
    color: #7fb8ff;
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    padding: 40px 36px;
    border: 1px solid var(--color-gray-200);
}

.auth-card h2 {
    font-size: 22px;
    color: var(--color-text-primary);
    margin: 0 0 6px;
}

.auth-card p.auth-sub {
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 0 0 28px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-alert.error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--color-red);
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.auth-alert.success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.auth-field-error {
    color: var(--color-red);
    font-size: 12px;
    margin-top: 6px;
}

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

.auth-form label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--color-text-secondary);
}

.auth-form .input-icon-wrap {
    position: relative;
}

.auth-form .input-icon-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 14px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-gray-50);
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.auth-form .btn-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    color: var(--color-white);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px var(--color-accent-glow);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-form .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px var(--color-accent-glow);
    filter: brightness(1.04);
}

.auth-form .btn-submit:active {
    transform: translateY(0) scale(0.98);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    position: relative;
    z-index: 1;
}

.auth-role-hint {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.auth-role-hint span {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    color: var(--color-text-secondary);
}
