/* Signup Page Styles - Page Specific Overrides Only */

body {
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    margin: 0;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

.signup-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    color: white;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.signup-header h1 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 2em;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-header h1 svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.container {
    max-width: 1600px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0 auto;
    overflow-x: hidden;
}

.signup-form {
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px;
}

.name-lookup-loading {
    padding: 10px 15px;
    background: #e8f4fc;
    border-bottom: 1px solid #b8d4e8;
    color: var(--dark-text, #1a1a1a);
    font-size: 0.9em;
}

.name-lookup-loading-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-inline {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0;
    flex-shrink: 0;
}

.signup-group {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
}

.signup-group:last-child {
    border-bottom: none;
}

.group-header {
    margin-bottom: 12px;
}

.group-description {
    color: var(--dark-text);
    opacity: 0.7;
    font-size: 0.9em;
    margin: 0;
}

.signup-field-section {
    margin-bottom: 20px;
}

.signup-field-section--titled {
    border: 1px solid #c5d5e3;
    border-radius: 8px;
    padding: 16px 18px;
    background: #fafcfd;
    box-shadow: 0 1px 3px rgba(22, 105, 122, 0.06);
}

.field-section-title {
    margin: 0 0 14px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid #dce8f0;
    padding-bottom: 8px;
}

.signup-field-section--titled .signup-field {
    background: transparent;
    border-left: none;
    padding: 0 0 14px 0;
    margin-bottom: 0;
}

.signup-field-section--titled .signup-field:last-child {
    padding-bottom: 0;
}

.signup-field {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.field-label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 6px;
    font-size: 0.95em;
}

.field-required {
    color: var(--error-color);
    margin-left: 2px;
}

.field-note {
    margin: -2px 0 8px 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.4;
}

.field-input,
.field-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.field-input:focus,
.field-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 105, 122, 0.1);
}

.field-select {
    cursor: pointer;
    background: white;
}

.field-multichoice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.multichoice-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.95em;
}

.multichoice-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.required-indicator {
    color: var(--error-color);
    font-size: 0.85em;
    margin-top: 5px;
    font-style: italic;
}

.submit-section {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.validation-status {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.signup-success,
.signup-error {
    text-align: center;
    padding: 24px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px auto 15px;
    max-width: 560px;
    width: 100%;
    box-sizing: border-box;
}

.signup-success h2,
.signup-error h2 {
    margin: 0 0 12px 0;
    font-size: 1.35em;
    font-weight: 600;
}

.signup-success h2 {
    color: var(--success-color);
}

.signup-error h2 {
    color: var(--error-color);
}

.signup-success .success-icon,
.signup-error .error-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.signup-success .success-icon {
    color: var(--success-color);
}

.signup-error .error-icon {
    color: var(--error-color);
}

.signup-error .error-icon svg,
.signup-success .success-icon svg,
.signup-error .error-icon .icon-large,
.signup-success .success-icon .icon-large {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;
}

.signup-success p,
.signup-error p {
    color: var(--dark-text);
    font-size: 1em;
    line-height: 1.5;
    margin: 0 0 18px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.signup-again-btn {
    margin-top: 4px;
}

.signup-error p {
    color: #333;
}

.retry-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.loading {
    padding: 20px 15px;
    color: var(--dark-text);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@media (max-width: 768px) {
    .signup-header h1 {
        font-size: 1.5em;
    }
    .signup-header h1 svg {
        width: 28px;
        height: 28px;
    }
    .signup-success,
    .signup-error {
        padding: 20px 16px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .signup-error .error-icon svg,
    .signup-success .success-icon svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .signup-header {
        padding: 10px;
        margin-bottom: 12px;
    }
    .signup-header h1 {
        font-size: 1.3em;
    }
    .signup-header h1 svg {
        width: 24px;
        height: 24px;
    }
    .signup-success,
    .signup-error {
        padding: 18px 14px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 6px;
    }
    .signup-success h2,
    .signup-error h2 {
        font-size: 1.2em;
    }
    .signup-success p,
    .signup-error p {
        font-size: 0.95em;
        margin-bottom: 14px;
    }
    .signup-error .error-icon svg,
    .signup-success .success-icon svg {
        width: 36px;
        height: 36px;
    }
}
