/* ========================================
   MODERN FORM INTERFACE - REVISED CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Fresh Color Palette */
    --primary-color: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-light: #ddd6fe;
    --secondary-color: #06b6d4;
    --accent-color: #f472b6;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Neutral Colors */
    --bg-dark: #0c0c0c;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --bg-input: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #3f3f46;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.4);
    --shadow-glow-pink: 0 0 30px rgba(244, 114, 182, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(244, 114, 182, 0.1) 100%),
        url('images/Screenshot 2026-03-15 195516.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(244, 114, 182, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Main Container */
.container {
    background: rgba(24, 24, 27, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 28px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(124, 58, 237, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative Elements */
.container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), var(--primary-color), transparent);
    border-radius: 0 0 20px 20px;
    opacity: 0.8;
}

/* Form Title */
.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 50%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Form */
form {
    width: 100%;
}

/* Message Display */
.messageDiv {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    animation: shake 0.4s ease, fadeIn 0.3s ease;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.messageDiv.success {
    background: linear-gradient(135deg, var(--success-color), #16a34a);
    border-color: rgba(34, 197, 94, 0.3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Input Group */
.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group > i:not(.password-toggle) {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.input-group input {
    width: 100%;
    padding: 18px 50px 18px 50px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.input-group input::placeholder {
    color: transparent;
}

.input-group input:focus {
    border-color: var(--primary-color);
    background: rgba(39, 39, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15), var(--shadow-glow);
}

.input-group input:focus + i,
.input-group input:not(:placeholder-shown) + i {
    color: var(--primary-color);
}

.input-group label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-normal);
    background: transparent;
    padding: 0 6px;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.7rem;
    color: var(--primary-color);
    background: var(--bg-card);
    margin-left: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    z-index: 10;
    font-size: 1.25rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Recover Link */
.recover {
    text-align: right;
    margin-bottom: 1.5rem;
}

.recover a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.recover a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Primary Button */
.btn {
    width: 100%;
    padding: 18px;
    border: none;
    outline: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9333ea 50%, var(--primary-hover) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

/* Sign Up Button */
#submitSignUp {
    outline: none;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn::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: 0.5s;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px rgba(124, 58, 237, 0.5), 0 0 20px rgba(244, 114, 182, 0.3);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Social Login Divider */
.or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.or::before,
.or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.or span {
    padding: 0 1rem;
}

/* Social Icons */
.icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.icons i {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    background: var(--bg-input);
}

.icons i:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.1);
}

/* Link Section */
.links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
    font-size: 0.9rem;
}

.links p {
    color: var(--text-secondary);
    font-weight: 400;
}

.links button {
    background: none;
    color: #7c3aed;
    width: auto;
    padding: 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    border: none;
    letter-spacing: 0.3px;
}

.links button::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7c3aed;
    transition: var(--transition-normal);
    border-radius: 2px;
}

.links button:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

.links button:hover::after {
    width: 100%;
    background: var(--accent-color);
}

/* Form Animations */
.container {
    transition: var(--transition-normal);
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 16px;
        align-items: flex-start;
        padding-top: 30px;
    }

    .container {
        padding: 2rem 1.75rem;
        border-radius: 20px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .input-group input {
        padding: 16px 46px 16px 46px;
        font-size: 0.9rem;
    }

    .input-group i {
        left: 14px;
        font-size: 1.15rem;
    }

    .input-group label {
        left: 46px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 16px;
        font-size: 0.95rem;
    }

    .icons i {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .links {
        flex-direction: column;
        gap: 6px;
    }
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -11px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focus Visible */
input:focus-visible {
    outline: none;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
