/* ===================================
   MLM Website Premium - Auth Styles
   Theme: Purple #8B5CF6, Gold #F59E0B, White
   ================================== */

:root {
    --gradient-1: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    --gradient-2: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --gradient-3: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --primary-purple: #8B5CF6;
    --secondary-gold: #F59E0B;
    --accent-pink: #EC4899;
    --color-white: #ffffff;
    --color-dark: #1a1a1a;
    --color-gray: #6c757d;
    --shadow-lg: 0 10px 40px rgba(139, 92, 246, 0.25);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-3);
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    opacity: 0.12;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    bottom: -200px;
    right: -200px;
    animation-delay: 6s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.15);
    top: 50%;
    left: 50%;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(70px, 130px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(-70px, 90px) rotate(240deg) scale(0.95);
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 20px;
    margin: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 55px 45px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.6s ease;
    border-top: 5px solid var(--primary-purple);
}

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

.auth-header {
    text-align: center;
    margin-bottom: 42px;
}

.logo {
    width: 85px;
    height: 85px;
    margin: 0 auto 22px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 38px;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
    animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 12px 36px rgba(139, 92, 246, 0.5);
    }
}

.auth-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: var(--color-gray);
    font-size: 17px;
}

.auth-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-size: 16px;
}

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

.input-icon {
    position: absolute;
    left: 20px;
    color: var(--primary-purple);
    font-size: 19px;
    pointer-events: none;
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    font-size: 17px;
    transition: var(--transition);
    background: var(--color-white);
    color: var(--color-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--color-white);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.15);
}

.password-toggle {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    font-size: 19px;
    transition: var(--transition);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-purple);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    font-size: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember-me input[type="checkbox"] {
    width: 19px;
    height: 19px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.remember-me label {
    cursor: pointer;
    color: var(--color-gray);
    margin: 0;
}

.forgot-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: #7C3AED;
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 20px;
    background: var(--gradient-1);
    color: var(--color-white);
    border: none;
    border-radius: 14px;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 92, 246, 0.45);
}

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

.divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #d1d5db;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--color-white);
    padding: 0 16px;
    color: var(--color-gray);
    font-size: 15px;
}

.social-login {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}

.social-btn {
    padding: 16px;
    border: 2px solid #d1d5db;
    border-radius: 14px;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.social-btn i {
    font-size: 24px;
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.twitter {
    color: #1DA1F2;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.auth-footer {
    text-align: center;
    color: var(--color-gray);
    font-size: 16px;
}

.auth-footer p {
    margin: 10px 0;
}

.auth-footer a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: #7C3AED;
    text-decoration: underline;
}

.form-control.error {
    border-color: #DC2626;
    background: #FEE2E2;
}

.error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }

    .auth-container {
        padding: 16px;
        margin: 16px;
    }

    .auth-card {
        padding: 42px 30px;
        border-radius: 24px;
    }

    .logo {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }

    .auth-header h1 {
        font-size: 30px;
    }

    .auth-header p {
        font-size: 17px;
    }

    .form-control {
        padding: 20px 20px 20px 55px;
        font-size: 18px;
    }

    .btn-auth {
        padding: 22px;
        font-size: 20px;
    }

    .social-login {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .social-btn {
        flex-direction: row;
        justify-content: center;
        padding: 18px;
        font-size: 17px;
    }

    .social-btn i {
        font-size: 26px;
    }

    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .auth-footer {
        font-size: 17px;
    }

    .floating-shape {
        opacity: 0.08;
    }

    .shape-1 {
        width: 320px;
        height: 320px;
    }

    .shape-2 {
        width: 270px;
        height: 270px;
    }

    .shape-3 {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 38px 26px;
    }

    .auth-header h1 {
        font-size: 28px;
    }
}
