/* Enhanced Signup Form Styles */
#signup_content {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    font-weight: 600;
    margin-bottom: 30px;
}

/* Override title color for signup page to ensure visibility */
#signup_content .title {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Input wrapper for positioning icons inside fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .form-control {
    padding-right: 40px;
    /* Space for icon */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    height: 45px;
}

.input-wrapper .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Validation icons positioned inside input fields */
.input-wrapper .validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

/* Password toggle button positioning */
.input-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    z-index: 3;
    transition: color 0.3s ease;
}

.input-wrapper .password-toggle:hover {
    color: #007bff;
}

/* When password field has toggle, adjust validation icon position */
.input-wrapper:has(.password-toggle) .validation-icon {
    right: 40px;
}

/* Validation states */
.input-wrapper.is-valid .form-control {
    border-color: #28a745;
}

.input-wrapper.is-valid .validation-icon {
    color: #28a745;
}

.input-wrapper.is-invalid .form-control {
    border-color: #dc3545;
}

.input-wrapper.is-invalid .validation-icon {
    color: #dc3545;
}

/* Validation feedback styling */
.validation-feedback {
    display: none;
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    color: #6c757d;
}

.validation-feedback.show {
    display: block;
}

.validation-feedback.is-valid {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.validation-feedback.is-invalid {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.validation-feedback.text-danger {
    display: block;
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

/* Password strength meter */
.password-strength-meter {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill[data-strength="0"] {
    width: 0%;
    background-color: transparent;
}

.strength-fill[data-strength="1"] {
    width: 20%;
    background-color: #dc3545;
}

.strength-fill[data-strength="2"] {
    width: 40%;
    background-color: #fd7e14;
}

.strength-fill[data-strength="3"] {
    width: 60%;
    background-color: #ffc107;
}

.strength-fill[data-strength="4"] {
    width: 80%;
    background-color: #28a745;
}

.strength-fill[data-strength="5"] {
    width: 100%;
    background-color: #20c997;
}

.strength-text {
    font-size: 11px;
}

/* Password requirements */
.password-requirements {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #6c757d;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    font-size: 11px;
}

.requirements-list li {
    margin-bottom: 2px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.requirements-list li i {
    margin-right: 6px;
    font-size: 8px;
}

.requirements-list li.valid {
    color: #28a745;
}

.requirements-list li.valid i {
    color: #28a745;
}

/* Button styling */
.btn.olakala-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.olakala-bg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn.olakala-bg:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loading state */
.btn.olakala-bg .spinner-border {
    width: 16px;
    height: 16px;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1rem;
}

/* Field validation error styling */
.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #signup_content {
        padding: 15px;
    }

    .input-wrapper .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Animation for validation feedback */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.validation-feedback.show {
    animation: fadeIn 0.3s ease;
}