/* ===================================================================
   SIGNUP PAGE - SPLIT SCREEN DESIGN
   Form on left, video background on right
   =================================================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* Main Container - Split Screen */
.signup-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Form Section */
.form-section {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Section */
.form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.login-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.login-prompt span {
    color: #64748b;
}

.login-prompt .login-link {
    color: #a93e17;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.login-prompt .login-link:hover {
    background: rgba(169, 62, 23, 0.1);
    color: #7c2d12;
}

/* Form Content */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px 30px;
    max-height: calc(100vh - 80px);
    max-width: 420px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

/* Form Styles - Ultra Compact */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.form-input:focus {
    border-color: #a93e17;
    box-shadow: 0 0 0 3px rgba(169, 62, 23, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
    transition: color 0.2s ease;
    outline: none;
    border-radius: 3px;
}

.password-toggle:hover {
    color: #374151;
}

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

.strength-bar {
    height: 2px;
    background: #e5e7eb;
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 2px;
}

.strength-fill {
    height: 100%;
    border-radius: 1px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill.very-weak { width: 20%; background: #ef4444; }
.strength-fill.weak { width: 40%; background: #f97316; }
.strength-fill.medium { width: 60%; background: #eab308; }
.strength-fill.strong { width: 80%; background: #22c55e; }
.strength-fill.very-strong { width: 100%; background: #16a34a; }

.strength-text {
    font-size: 11px;
    font-weight: 500;
}

.strength-text.very-weak { color: #ef4444; }
.strength-text.weak { color: #f97316; }
.strength-text.medium { color: #eab308; }
.strength-text.strong { color: #22c55e; }
.strength-text.very-strong { color: #16a34a; }

/* Form Options - Ultra Compact */
.form-options {
    margin: 2px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #a93e17;
    border-color: #a93e17;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.terms-link,
.privacy-link {
    color: #a93e17;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover,
.privacy-link:hover {
    color: #7c2d12;
    text-decoration: underline;
}

/* Error Message - Compact */
.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

.error-message i {
    font-size: 14px;
    flex-shrink: 0;
}

/* Signup Button - Ultra Compact */
.signup-button {
    background: linear-gradient(135deg, #a93e17 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 38px;
    margin: 6px 0 0;
}

.signup-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(169, 62, 23, 0.4);
}

.signup-button:active {
    transform: translateY(0);
}

.signup-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-text {
    transition: opacity 0.2s ease;
}

.signup-button.loading .button-text {
    opacity: 0;
}

.signup-button.loading .button-loader {
    display: flex !important;
}

/* Button Loader */
.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Remove footer styles since we moved login to top */

/* Right Side - Video Section */
.video-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(169, 62, 23, 0.2) 0%,
        rgba(220, 38, 38, 0.3) 100%
    );
    z-index: 2;
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 400px;
    padding: 20px;
}

.video-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.video-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a93e17 0%, #dc2626 100%);
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-container {
        flex-direction: column;
    }
    
    .form-section {
        order: 1;
        flex: none;
        height: 100vh;
    }
    
    .form-top {
        padding: 16px 20px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .login-prompt {
        font-size: 13px;
    }
    
    .login-prompt span {
        display: none;
    }
    
    .form-content {
        padding: 0 20px 20px;
        max-width: none;
        gap: 12px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    .video-section {
        display: none;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .form-top {
        padding: 12px 16px;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .form-content {
        padding: 0 16px 16px;
        gap: 10px;
    }
    
    .form-header h1 {
        font-size: 20px;
    }
    
    .checkbox-label {
        font-size: 11px;
    }
}

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-video {
        display: none;
    }
}