/*
 * Auth page styles for WebberSites Ai — Login & Register.
 * Animated gradient background + glassmorphic card.
 */

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #fff;
    background: linear-gradient(120deg, #5a6cff, #8c3aff, #c33a6d, #e0463d);
    background-size: 200% 200%;
    animation: authGradient 20s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

@keyframes authGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    body.auth-page {
        animation: none;
        background-position: 50% 50%;
    }
}

/* Bubble background decoration */
.auth-bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.auth-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(2px);
    animation: authFloat linear infinite;
}

@keyframes authFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Card */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 20px;
    padding: 40px 36px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.auth-brand-text {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.auth-brand-text em {
    font-style: normal;
    opacity: 0.7;
}

.auth-heading {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.auth-subheading {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 24px;
}

.auth-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ffcccc;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.auth-field label {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}

.auth-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.auth-submit {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 4px;
}

.auth-submit:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.12));
    transform: translateY(-1px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.auth-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.15s ease;
}

.auth-footer a:hover {
    border-color: #fff;
}

@media (max-width: 480px) {
    .auth-card {
        margin: 12px;
        padding: 28px 24px;
        border-radius: 22px;
    }
    .auth-heading {
        font-size: 1.35rem;
    }
}
