/* Signup Specific Styles */
.required-asterisk {
    color: #dc2626;
}

.input-with-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.password-wrapper .input-icon {
    right: 40px;
}

.toggle-eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    z-index: 2;
}

/* Updated Phone Container */
.phone-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.country-code-select {
    flex: 0 0 auto;
    width: 100px !important; /* Reduced from 100px */
}

.phone-input-wrapper {
    flex: 1;
}

.select2-custom {
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    height: 48px !important;
    padding: 0 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 4px !important;
}

/* Ultra-compact country option */
.country-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    min-width: auto;
    font-size: 13px;
}

.country-flag {
    width: 18px !important;
    height: 14px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.country-code-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    min-width: 35px;
}

/* Compact dropdown */
.select2-container--default .select2-dropdown {
    min-width: 120px !important;
    width: auto !important;
}

.select2-container--default .select2-results__option {
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 4px 8px !important;
    font-size: 13px !important;
}

/* Make dropdown items compact */
.select2-container--default .select2-results > .select2-results__options {
    max-height: 180px;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    margin: 15px 0;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #0066cc;
    border-color: #0066cc;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.redirect-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.redirect-text {
    color: #6b7280;
    margin-bottom: 8px;
}

.redirect-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.redirect-link:hover {
    text-decoration: underline;
}

/* Loading state */
.button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 767px) {
    .phone-container {
        flex-direction: row; /* Keep side by side on mobile */
        gap: 6px;
    }
    
    .country-code-select {
        width: 70px !important; /* Even smaller on mobile */
    }
    
    .phone-input-wrapper input {
        min-width: 0;
    }
    
    .login-button-wrap {
        flex-direction: column;
        gap: 12px;
    }
    
    .button-width-50 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .phone-container {
        gap: 4px;
    }
    
    .country-code-select {
        width: 80px !important;
    }
    
    .country-option {
        gap: 2px;
    }
    
    .country-flag {
        width: 12px !important;
        height: 10px !important;
    }
    
    .country-code-text {
        font-size: 12px;
        min-width: 30px;
    }
}

/* Custom scrollbar for compact dropdown */
.select2-container--default .select2-results__options {
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

.select2-container--default .select2-results__options::-webkit-scrollbar {
    width: 3px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 1.5px;
}