/**
 * GoldieCircle Sign Up & Sign In Pages
 * Version: 1.0.1 - Text size scaling support (px -> rem)
 */

/* ============================================
   SIGNUP & SIGNIN PAGES - COMMON STYLES
   ============================================ */

.gc-signup-page,
.gc-signin-page {
    background: #F8F9FA;
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
}

.gc-signup-container,
.gc-signin-container {
    max-width: 600px;
    margin: 0 auto;
}

.gc-signup-card,
.gc-signin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.gc-signup-header,
.gc-signin-header {
    text-align: center;
    margin-bottom: 30px;
}

.gc-signup-header h1,
.gc-signin-header h1 {
    color: #0B5394;
    font-size: 2rem; /* Was 32px - now scales with text size */
    font-weight: 700;
    margin-bottom: 8px;
}

.gc-signup-subtitle,
.gc-signin-subtitle {
    color: #6c757d;
    font-size: 1rem; /* Was 16px - now scales with text size */
    margin: 0;
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.gc-form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E0E4E8;
}

.gc-form-section:last-of-type {
    border-bottom: none;
}

.gc-section-title {
    color: #2c3e50;
    font-size: 1.25rem; /* Was 20px - now scales with text size */
    font-weight: 700;
    margin-bottom: 20px;
}

/* ============================================
   FORM FIELDS
   ============================================ */

.gc-form-field {
    margin-bottom: 20px;
}

.gc-form-field label {
    display: block;
    color: #2c3e50;
    font-size: 1rem; /* Was 16px - now scales with text size */
    font-weight: 600;
    margin-bottom: 8px;
}

.gc-form-field input[type="text"],
.gc-form-field input[type="email"],
.gc-form-field input[type="password"],
.gc-form-field select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem; /* Was 16px - now scales with text size */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: inherit;
}

.gc-form-field input:focus,
.gc-form-field select:focus {
    outline: none;
    border-color: #0B5394;
    box-shadow: 0 0 0 4px rgba(11, 83, 148, 0.1);
}

.gc-field-hint {
    display: block;
    color: #6c757d;
    font-size: 0.875rem; /* Was 14px - now scales with text size */
    margin-top: 6px;
}

/* ============================================
   RADIO BUTTONS (Who are you searching for?)
   ============================================ */

.gc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gc-radio-option {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gc-radio-option:hover {
    border-color: #0B5394;
    background: #E8F2F7;
}

.gc-radio-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gc-radio-option input[type="radio"]:checked + .gc-radio-label {
    color: #0B5394;
}

.gc-radio-option:has(input:checked) {
    border-color: #0B5394;
    background: #E8F2F7;
}

.gc-radio-label {
    flex: 1;
    font-size: 0.9375rem; /* Was 15px - now scales with text size */
    line-height: 1.5;
}

.gc-radio-label strong {
    display: block;
    font-size: 1rem; /* Was 16px - now scales with text size */
    margin-bottom: 2px;
}

/* ============================================
   CHECKBOXES (Primary Concerns)
   ============================================ */

.gc-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.gc-checkbox-option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
}

.gc-checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gc-checkbox-option:hover {
    background: #F8F9FA;
    border-radius: 6px;
}

.gc-form-checkbox {
    margin: 20px 0;
}

.gc-form-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9375rem; /* Was 15px - now scales with text size */
    color: #2c3e50;
}

.gc-form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================
   OPTIONAL FIELDS SECTION
   ============================================ */

.gc-optional-section {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    border: none;
}

.gc-optional-toggle {
    margin-bottom: 15px;
}

.gc-optional-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem; /* Was 16px - now scales with text size */
    color: #2c3e50;
}

.gc-optional-toggle input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.gc-optional-fields {
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    margin-top: 15px;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.gc-form-actions {
    margin: 30px 0 20px 0;
}

.gc-btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem; /* Was 18px - now scales with text size */
    font-weight: 700;
    color: white;
    background: #27AE60;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.gc-btn-submit:hover {
    background: #52C67A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.gc-btn-submit:active {
    transform: translateY(0);
}

.gc-btn-submit:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SSO BUTTONS
   ============================================ */

.gc-sso-divider {
    text-align: center;
    margin: 30px 0 20px 0;
    position: relative;
}

.gc-sso-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #dee2e6;
}

.gc-sso-divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 0.875rem; /* Was 14px - now scales with text size */
    position: relative;
    z-index: 1;
}

.gc-sso-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gc-sso-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.9375rem; /* Was 15px - now scales with text size */
    font-weight: 600;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.gc-sso-btn:hover:not(:disabled) {
    border-color: #0B5394;
    background: #F8F9FA;
}

.gc-sso-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gc-sso-btn svg {
    flex-shrink: 0;
}

/* ============================================
   SIGNIN/SIGNUP LINKS
   ============================================ */

.gc-signin-link,
.gc-signup-link,
.gc-forgot-password {
    text-align: center;
    font-size: 0.9375rem; /* Was 15px - now scales with text size */
    color: #6c757d;
}

.gc-signin-link a,
.gc-signup-link a,
.gc-forgot-password a {
    color: #0B5394;
    font-weight: 600;
    text-decoration: none;
}

.gc-signin-link a:hover,
.gc-signup-link a:hover,
.gc-forgot-password a:hover {
    text-decoration: underline;
}

.gc-forgot-password {
    margin: 15px 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .gc-signup-page,
    .gc-signin-page {
        padding: 30px 15px;
    }

    .gc-signup-card,
    .gc-signin-card {
        padding: 25px;
    }

    .gc-signup-header h1,
    .gc-signin-header h1 {
        font-size: 1.625rem; /* Was 26px - now scales with text size */
    }

    .gc-section-title {
        font-size: 1.125rem; /* Was 18px - now scales with text size */
    }

    .gc-checkbox-group {
        grid-template-columns: 1fr;
    }

    .gc-sso-buttons {
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.gc-form-field input:focus,
.gc-form-field select:focus,
.gc-btn-submit:focus,
.gc-sso-btn:focus {
    outline: 3px solid #0B5394;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
