/**
 * Password Complexity Styles
 * Clean and organized CSS for password validation UI
 */

/* Password Input Container */
.password-input-container {
    position: relative;
}

.password-input-container input[type="password"] {
    -webkit-text-security: disc;
    -moz-text-security: disc;
    text-security: disc;
}

.password-input-container .form-control {
    padding-right: 45px !important;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 2px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #495057;
}

.password-toggle:focus {
    outline: none;
    box-shadow: none;
}

.password-toggle i {
    font-size: 14px;
}

/* Password Requirements */
.password-requirements {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #dee2e6;
    font-size: 0.875rem;
    margin-top: 12px;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    font-size: 1rem;
    min-width: 20px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.requirement-item span {
    transition: color 0.3s ease;
}

.requirement-item .text-success {
    font-weight: 500;
}

/* Checkmark Animation */
.bi-check-circle-fill {
    animation: checkmark 0.3s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Submit Button States */
.submit-button-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed;
}

.submit-button-enabled {
    opacity: 1 !important;
    cursor: pointer;
}

/* Agreement Checkbox */
.agreement-checkbox {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
}

.agreement-checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.agreement-checkbox label {
    font-size: 0.9rem;
    margin-bottom: 0;
    cursor: pointer;
}

.agreement-checkbox .terms-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.agreement-checkbox .terms-link:hover {
    color: #0056b3;
}
