/* ================================================
   Modern Signup Page Styles
   ================================================ */

:root {
    --primary-color: #475569;
    --primary-hover: #334155;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --background: #f8fafc;
    --card-background: #ffffff;
    --error-color: #ef4444;
    --success-color: #10b981;
    --focus-color: #3b82f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ================================================
   Body & Container
   ================================================ */

.modern-signup-page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.signup-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.6s ease-out;
}

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

/* ================================================
   Card
   ================================================ */

.signup-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #64748b);
    opacity: 0.8;
}

/* ================================================
   Logo
   ================================================ */

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ================================================
   Header
   ================================================ */

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.signup-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* ================================================
   Form
   ================================================ */

.signup-form {
    margin-bottom: 1.5rem;
}

/* Facebook Login Button */
.facebook-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #1877f2;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.facebook-login-btn:hover {
    background: #166fe5;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.facebook-login-btn .mdi {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Error Messages */
.form-errors {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
}

.error-message {
    display: flex;
    align-items: center;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

.error-message .mdi {
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

/* Form Row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* Form Group */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

/* Form Input */
.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--card-background);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:hover,
.form-select:hover {
    border-color: #cbd5e1;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--focus-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select specific styles */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* reCAPTCHA Container */
.recaptcha-container {
    margin-bottom: 1.5rem;
}

.recaptcha-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}

.submit-btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Terms Text */
.terms-text {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 1rem 0 0 0;
    line-height: 1.5;
}

/* ================================================
   Footer
   ================================================ */

.signup-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.signup-footer p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.signin-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signin-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 640px) {
    .modern-signup-page {
        padding: 1rem;
    }

    .signup-card {
        padding: 2rem 1.5rem;
    }

    .signup-title {
        font-size: 1.5rem;
    }

    .signup-subtitle {
        font-size: 0.875rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .logo {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 400px) {
    .signup-card {
        padding: 1.5rem 1rem;
    }

    .form-input,
    .form-select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .submit-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* ================================================
   Accessibility
   ================================================ */

.form-input:focus-visible,
.form-select:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input,
    .form-select {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .modern-signup-page {
        background: white;
    }
    
    .signup-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}