/* assets/css/auth.css - Authentication Pages */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.auth-box {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
}

.auth-header {
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo svg {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo h1 span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.auth-header h2 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

.auth-form {
    margin-bottom: 2rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--primary);
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-info {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info h3 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    color: white;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.auth-info li:last-child {
    margin-bottom: 0;
}

.auth-info svg {
    flex-shrink: 0;
    stroke-width: 2;
    margin-top: 0.125rem;
}

.auth-info span {
    opacity: 0.95;
}

/* 2FA Verification Page Styles */
.verification-code {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.verification-code input {
    width: 3.5rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.verification-code input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.resend-code {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.resend-code button {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 0.25rem;
}

.resend-code button:hover {
    color: var(--primary-dark);
}

.resend-code button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Registration Form Specific */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-meter-fill {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-weak {
    width: 33%;
    background-color: var(--danger);
}

.strength-medium {
    width: 66%;
    background-color: var(--warning);
}

.strength-strong {
    width: 100%;
    background-color: var(--success);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Account Type Selection */
.account-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.account-type-option {
    cursor: pointer;
}

.account-type-option input[type="checkbox"] {
    display: none;
}

.account-type-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.account-type-card svg {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.account-type-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.account-type-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.bonus-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.account-type-option input[type="checkbox"]:checked + .account-type-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.account-help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-info {
        order: -1;
        padding: 2rem;
    }
    
    .auth-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .verification-code input {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.25rem;
    }
    
    .auth-info {
        padding: 1.5rem;
    }
}