/**
 * VRC Register/Login Form Styles
 * Modern, streamlined authentication form design
 * Extends base.css with register-specific components
 */

.vrc-auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.vrc-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.vrc-auth-title {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.vrc-auth-subtitle {
    margin: 0;
    color: #718096;
    font-size: 16px;
    line-height: 1.5;
}

.vrc-auth-form {
    width: 100%;
}

/* Social Login Section */
.vrc-social-login-section {
    margin-bottom: 20px;
}

.vrc-social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Divider */
.vrc-auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.vrc-auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.vrc-auth-divider-text {
    display: inline-block;
    padding: 0 16px;
    background: #fff;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* Toggle Form - Unique to register form */
.vrc-toggle-form {
    margin-top: 20px;
}

.vrc-form-toggle {
    display: flex;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.vrc-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vrc-toggle-btn.active {
    background: #fff;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vrc-toggle-btn:hover:not(.active) {
    background: #edf2f7;
}

/* Form Elements - extend base.css form styles */
.vrc-unified-form {
    margin: 0;
}

.vrc-unified-form .vrc-form-row input {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
}

.vrc-unified-form .vrc-form-row input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.vrc-unified-form .vrc-form-row input.error {
    border-color: #f56565;
}

.vrc-field-feedback {
    margin-top: 6px;
    font-size: 14px;
    min-height: 20px;
}

.vrc-field-feedback.error {
    color: #f56565;
}

/* Auth-specific button styles - extend base.css vrc-btn */
.vrc-auth-container .vrc-btn {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vrc-auth-container .vrc-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.vrc-auth-container .vrc-btn-secondary:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Checkbox - use base.css styling */
.vrc-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
}

.vrc-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

/* Links */
.vrc-form-links {
    text-align: center;
    margin-top: 16px;
}

.vrc-form-links a {
    color: #4299e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vrc-form-links a:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Logged in state */
.vrc-auth-logged-in {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.vrc-auth-message h3 {
    color: #1a202c;
    margin-bottom: 12px;
    font-weight: 700;
}

.vrc-auth-message p {
    color: #718096;
    margin-bottom: 24px;
}

.vrc-auth-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vrc-auth-actions .vrc-btn {
    width: auto;
    min-width: 120px;
}

/* Hide/show elements based on mode */
.vrc-register-only,
.vrc-login-only {
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 480px) {
    .vrc-auth-container,
    .vrc-auth-logged-in {
        margin: 16px;
        padding: 24px 20px;
    }

    .vrc-auth-title {
        font-size: 24px;
    }

    .vrc-auth-subtitle {
        font-size: 14px;
    }

    .vrc-auth-actions {
        flex-direction: column;
    }

    .vrc-auth-actions .vrc-btn {
        width: 100%;
    }

    .vrc-form-toggle {
        margin-bottom: 20px;
    }

    .vrc-toggle-btn {
        padding: 12px 16px;
        font-size: 16px;
    }
}
