/* Professional Signup Page Enhancements */

/* Add form sections styling */
.form-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.section-title {
    display: none;
}

/* Enhanced input styling */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 14px;
    padding: 13px 15px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.input-container:focus-within {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-main);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3), inset 0 1px 3px rgba(212, 175, 55, 0.1);
}

.input-container input {
    flex: 1;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    border: none;
    outline: none;
}

.input-container input::placeholder {
    color: var(--text-muted);
}

/* Input icons */
.input-icon {
    color: var(--gold-main);
    margin-right: 10px;
    font-size: 16px;
}

.input-icon.name { content: '\f007'; }
.input-icon.phone { content: '\f095'; }
.input-icon.otp { content: '\f1fa'; }
.input-icon.password { content: '\f023'; }

/* Country prefix styling */
.country-prefix {
    color: var(--gold-main);
    font-weight: 700;
    margin-right: 8px;
    font-size: 15px;
}

/* Optional badge */
.optional-badge {
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced form labels */
.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-main);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Send OTP Button */
#sendOtpBtn {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    color: #1a1a1a;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    white-space: nowrap;
}

#sendOtpBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.6);
}

#sendOtpBtn:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
}

#sendOtpBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Eye icon enhanced */
.eye-icon {
    cursor: pointer;
    color: var(--gold-main);
    font-size: 16px;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.eye-icon:hover {
    color: var(--gold-light);
    transform: scale(1.15);
}

/* Back button styling */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    color: var(--gold-main);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    font-size: 18px;
}

.back-btn:hover {
    background: var(--gold-main);
    color: #000;
    transform: translateX(-2px);
}

/* Progress indicator line */
.progress-line {
    height: 4px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #D4AF37);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Form group enhancements */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-group input:valid {
    border-color: var(--gold-main);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

/* Success modal enhancements */
.success-modal {
    animation: modalSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: #1a1a1a;
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
    animation: successPulse 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.download-apk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(180deg, #FFD700 0%, #D4AF37 100%);
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.5);
    text-transform: uppercase;
}

.download-apk-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.7);
}

.download-apk-btn:active {
    transform: scale(0.98);
}

/* Form validation messages */
.validation-message {
    font-size: 11px;
    margin-top: 6px;
    padding-left: 12px;
    display: none;
}

.validation-message.show {
    display: block;
}

.validation-message.success {
    color: #51cf66;
}

.validation-message.error {
    color: #ff6b6b;
}

/* Strength meter for password */
.password-strength {
    height: 3px;
    background: transparent;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.password-strength-weak { background: #ff6b6b; }
.password-strength-fair { background: #ffa940; }
.password-strength-good { background: #40a9ff; }
.password-strength-strong { background: #52c41a; }

/* Enhanced signup wrapper */
.signup-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Responsive improvements */
@media (max-width: 480px) {
    .signup-wrapper {
        padding: 12px;
    }

    #signupFormView {
        padding: 30px 20px 25px;
    }

    .section-title {
        font-size: 11px;
    }

    .form-label {
        font-size: 11px;
    }

    .input-container {
        padding: 12px 12px;
    }

    #sendOtpBtn {
        padding: 8px 14px;
        font-size: 10px;
    }
}

/* Accessibility improvements */
input:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Animation for form elements */
.form-group {
    animation: slideInUp 0.4s ease forwards;
    opacity: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
