/* ====================================
   AUTH PAGES — Premium style (matches homepage)
   ==================================== */

body.auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--color-bg);
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- Background effects (mirrored from homepage hero) --- */

.auth-bg-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 85%, rgba(253, 40, 141, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 70% 60% at 85% 15%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% 60%, rgba(253, 40, 141, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 70% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.auth-orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

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

.auth-orb-1 {
    width: 350px;
    height: 350px;
    background: rgba(253, 40, 141, 0.12);
    top: 10%;
    right: 10%;
    animation: orb-float-1 12s ease-in-out infinite;
}

.auth-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(124, 58, 237, 0.10);
    bottom: 15%;
    left: 5%;
    animation: orb-float-2 15s ease-in-out infinite;
}

.auth-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(59, 130, 246, 0.08);
    top: 55%;
    left: 60%;
    animation: orb-float-3 18s ease-in-out infinite;
}

.auth-cloud {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.auth-page .cloud-image {
    max-width: 50rem;
    opacity: 0.4;
}

/* --- Container --- */

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    text-align: center;
}

/* --- Logo --- */

.auth-logo-link {
    display: inline-block;
    margin-bottom: 32px;
    transition: opacity var(--transition-fast);
}

.auth-logo-link:hover {
    opacity: 0.8;
}

.auth-logo {
    height: 36px;
    width: auto;
}

/* --- Title --- */

.auth-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 8px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
    margin: 0 0 36px 0;
    font-weight: 400;
}

/* --- Form --- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-input {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-base);
    box-sizing: border-box;
    outline: none;
}

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

.auth-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(253, 40, 141, 0.5);
    box-shadow: 0 0 24px rgba(253, 40, 141, 0.12);
}

/* --- Primary button (gradient + glow like homepage CTA) --- */

.auth-btn {
    width: 100%;
    margin-top: 8px;
    padding: 18px;
    background: linear-gradient(135deg, #ff5ba0 0%, var(--color-accent) 50%, #d91678 100%);
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(253, 40, 141, 0.35), 0 0 60px rgba(253, 40, 141, 0.15);
    letter-spacing: 0.01em;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #ff6aac 0%, var(--color-accent-hover) 50%, #c41470 100%);
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 16px 48px rgba(253, 40, 141, 0.45), 0 0 80px rgba(253, 40, 141, 0.2);
}

.auth-btn:active {
    transform: scale(0.99);
}

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

/* --- Forgot password --- */

.auth-forgot {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.auth-forgot:hover {
    color: var(--color-accent-light);
}

/* --- Separator --- */

.auth-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.auth-separator span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-separator p {
    margin: 0;
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Alt action button (ghost style) --- */

.auth-alt-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-base);
    box-sizing: border-box;
}

.auth-alt-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

/* --- Messages --- */

.auth-message {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 14px;
    text-align: center;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--color-success);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--color-error);
}

/* --- Mobile --- */

@media (max-width: 480px) {
    .auth-container {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .auth-title {
        font-size: 34px;
    }

    .auth-input {
        padding: 16px 18px;
    }

    .auth-btn {
        padding: 16px;
    }

    .auth-orb-1 { width: 200px; height: 200px; }
    .auth-orb-2 { width: 150px; height: 150px; }
    .auth-orb-3 { width: 120px; height: 120px; }
}
