:root {
    --pink: #FF6B9D;
    --pink-light: #FFB3D1;
    --pink-dark: #E91E8C;
    --orange: #FF8C42;
    --orange-light: #FFB380;
    --green-light: #A8E6CF;
    --green-mint: #DFFFEF;
    --white: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-muted: #6B6B6B;
    --gradient-main: linear-gradient(135deg, #FF6B9D, #FF8C42, #A8E6CF);
}

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

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

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 230, 207, 0.2) 0%, transparent 40%);
    animation: bgAnimation 20s ease infinite;
    z-index: -2;
}

@keyframes bgAnimation {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(2%, 2%) rotate(5deg);
    }
    50% {
        transform: translate(-1%, 3%) rotate(-3deg);
    }
    75% {
        transform: translate(-2%, -1%) rotate(2deg);
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--orange);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--green-light);
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 250px;
    height: 250px;
    background: var(--pink-light);
    top: 30%;
    right: 25%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(10deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 460px;
    animation: slideUp 0.6s ease;
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
    padding: 48px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.auth-logo .tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

.auth-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    background: none;
    -webkit-text-fill-color: var(--white);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Form Styles */
.auth-form .form-group {
    margin-bottom: 22px;
}

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

.auth-form .form-control {
    width: 100%;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--white);
    transition: var(--transition);
}

.auth-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--white);
}

.auth-form select.form-control {
    color: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.auth-form select.form-control option {
    background: var(--pink-dark);
    color: var(--white);
}

/* Remember & Forgot */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--white);
}

.forgot-link {
    color: var(--white);
    font-weight: 500;
}

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

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Social Login */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.social-login {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Switch to Register */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.auth-switch a {
    color: var(--white);
    font-weight: 600;
    margin-left: 5px;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: var(--transition);
}

.strength-fill.weak {
    width: 33%;
    background: #dc3545;
}

.strength-fill.medium {
    width: 66%;
    background: #ffc107;
}

.strength-fill.strong {
    width: 100%;
    background: #28a745;
}

.strength-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Error/Success Messages */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #6bff6b;
}

/* Loading Spinner */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 35px 25px;
    }
    
    .auth-logo .logo {
        font-size: 1.8rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
