/* ============================================
   AUTHENTICATION STYLES - LOGIN & SIGNUP
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
.auth-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s infinite linear;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-tagline {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95em;
}

.feature-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Pricing Preview for Signup */
.pricing-preview {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.pricing-preview h3 {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item .price {
    font-weight: 600;
    font-size: 1.1em;
}

/* ============================================
   FORM SECTION (RIGHT SIDE)
   ============================================ */

.auth-form-container {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form {
    width: 100%;
}

.auth-form h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95em;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #bbb;
}

/* Error Messages */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 0.85em;
    margin-top: 5px;
    min-height: 18px;
}

.form-group input.error {
    border-color: #ef4444;
    background: #fff5f5;
}

/* ============================================
   PASSWORD STRENGTH
   ============================================ */

.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    border-radius: 2px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.strength-1 {
    background: #ef4444;
}

.strength-2 {
    background: #f59e0b;
}

.strength-3 {
    background: #3b82f6;
}

.strength-4 {
    background: #10b981;
}

/* ============================================
   CHECKBOX & RADIO
   ============================================ */

.checkbox-group,
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
}

.checkbox-group input,
.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* ============================================
   FORM OPTIONS
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 10px;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #764ba2;
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.auth-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.auth-button.primary:active {
    transform: translateY(0);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   DIVIDER
   ============================================ */

.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.form-divider span {
    margin: 0 15px;
    font-size: 0.85em;
}

/* ============================================
   SOCIAL LOGIN
   ============================================ */

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-button {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95em;
}

.social-button:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.social-button.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-button.github:hover {
    border-color: #333;
    color: #333;
}

/* ============================================
   LINKS & BOTTOM TEXT
   ============================================ */

.auth-link {
    text-align: center;
    color: #666;
    margin-top: 20px;
    font-size: 0.9em;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ============================================
   STATUS MESSAGES
   ============================================ */

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
    font-size: 0.9em;
    font-weight: 500;
}

.status-message.show {
    display: block;
}

.status-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

/* ============================================
   DEMO INFO
   ============================================ */

.demo-info {
    margin-top: 20px;
    padding: 12px;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.85em;
    color: #1e40af;
}

.demo-info p {
    margin: 0;
}

/* ============================================
   TOAST CONTAINER
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.toast.error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        width: 95%;
        border-radius: 15px;
    }

    .auth-brand {
        padding: 40px 30px;
        min-height: 250px;
    }

    .auth-form-container {
        padding: 40px 30px;
    }

    .brand-content h1 {
        font-size: 2em;
    }

    .brand-features {
        gap: 15px;
        margin-top: 30px;
    }

    .feature-item {
        gap: 12px;
        font-size: 0.85em;
    }

    .auth-form h2 {
        font-size: 1.5em;
    }

    .form-subtitle {
        font-size: 0.85em;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .auth-container {
        width: 100%;
        border-radius: 12px;
    }

    .auth-brand {
        padding: 30px 20px;
    }

    .auth-form-container {
        padding: 30px 20px;
    }

    .brand-content h1 {
        font-size: 1.5em;
    }

    .brand-tagline {
        font-size: 0.9em;
    }

    .auth-form h2 {
        font-size: 1.3em;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-button {
        padding: 11px;
    }

    .pricing-item {
        font-size: 0.85em;
    }

    .toast-container {
        top: 10px;
    }

    .toast {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: fadeIn 0.5s ease;
}

/* Loading state */
.auth-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.auth-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}