/**
 * VRC Register/Login Form Styles
 * Modern, streamlined authentication form design
 * Extends base.css with register-specific components
 */

.vrc-auth-container {
    margin: 20px auto;
    padding: 30px;
    background: #fff;
}

.vrc-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.vrc-auth-title {
    margin: 0 0 8px 0;
    font-size: var(--vrc-font-size--xl);
    font-weight: 700;
    line-height: 1.2;
}

.vrc-auth-subtitle {
    margin: 0;
    color: var(--vrc-text-light);
    font-size: var(--vrc-font-size--m);
    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: var(--color-slate-200);
    z-index: 1;
}

.vrc-auth-divider-text {
    display: inline-block;
    padding: 0 16px;
    background: #fff;
    color: var(--color-slate-500);
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
    position: relative;
}

/* Toggle Form - Unique to register form */
.vrc-toggle-form {
    margin-top: 20px;
}

.vrc-form-toggle {
    display: flex;
    background: var(--color-slate-100);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.vrc-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--vrc-text-light);
    font-size: var(--vrc-font-size--s);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vrc-toggle-btn.active {
    background: #fff;
    color: var(--vrc-text-medium);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vrc-toggle-btn:hover:not(.active) {
    background: var(--color-slate-200);
}

/* Form Elements - extend base.css form styles */
.vrc-unified-form {
    margin: 0;
}

.vrc-unified-form .vrc-form-row input {
    border: 2px solid var(--color-border-medium);
    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: var(--color-link);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.vrc-unified-form .vrc-form-row input.error {
    border-color: var(--color-orange-600);
}

/* 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;
}

/* Checkbox - use base.css styling */
.vrc-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--vrc-text-light);
    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: var(--color-link);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.vrc-form-links a:hover {
    color: var(--color-link-hover);
    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: var(--vrc-text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.vrc-auth-message p {
    color: var(--vrc-text-light);
    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-actions {
        flex-direction: column;
    }

    .vrc-auth-actions .vrc-btn {
        width: 100%;
    }

    .vrc-form-toggle {
        margin-bottom: 20px;
    }

    .vrc-toggle-btn {
        padding: 12px 16px;
    }
}
