/* Signup Page Specific Styles */

/* Signup page wrapper - needed since body styles are in common */
.signup-page-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-container {
    max-width: 550px;
}

.signup-header {
    /* Inherits from .auth-header */
    padding: 20px;
}

.signup-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.signup-header p {
    line-height: 1.4;
}

.signup-form {
    /* Inherits from .auth-form */
    padding: 20px 25px;
}

/* Form sections */
.form-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #10b981;
}

/* Form rows for side-by-side inputs */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

/* Override common form-group for signup */
.signup-form .form-group {
    margin-bottom: 15px;
}

.signup-form .form-group input {
    padding: 10px 12px;
}

/* Company search specific styles */
.search-box {
    position: relative;
}

.search-box.hidden {
    display: none;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 42px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    text-indent: 0;
}

.search-input::placeholder {
    padding-left: 5px;
}

.search-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 1;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-results.active {
    display: block;
}

.company-result {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.company-result:hover {
    background: #f9fafb;
}

.company-result.selected {
    background: #f0fdf4;
}

.company-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.company-details {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Selected company display */
.selected-company {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    display: none;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.selected-company.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    padding: 0;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.1);
}

.btn-remove svg {
    width: 14px;
    height: 14px;
}

/* Password requirements */
.password-requirements {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* Radio button groups */
.radio-group-inline {
    display: flex;
    gap: 12px;
}

.radio-option-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    flex: 1;
    text-align: center;
}

.radio-option-compact:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

.radio-option-compact input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.radio-option-compact:has(input[type="radio"]:checked) {
    border-color: #10b981;
    background: #f0fdf4;
}

.radio-label-compact {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.radio-option-compact:has(input[type="radio"]:checked) .radio-label-compact {
    color: #166534;
    font-weight: 600;
}

/* Signup button */
.btn-signup {
    /* Inherits from .btn-primary */
    margin-top: 10px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    margin-bottom: 20px;
}

.success-modal h2 {
    color: #10b981;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 16px;
    color: #374151;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.modal-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}