/**
 * Password Checklist Styles
 *
 * Default theme - can be overridden with custom classes
 */

/* Base Container */
.password-checklist {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: passwordChecklistSlideDown 0.25s ease-out;
}

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

/* Title */
.password-checklist .checklist-title {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List */
.password-checklist .checklist-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Requirement Item */
.password-checklist .requirement {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Icon */
.password-checklist .req-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Valid State */
.password-checklist .requirement.valid .req-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.password-checklist .requirement.valid .req-icon::before {
    content: '✓';
}

.password-checklist .requirement.valid .req-text {
    color: #059669;
}

/* Invalid State */
.password-checklist .requirement.invalid .req-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.password-checklist .requirement.invalid .req-icon::before {
    content: '✕';
}

.password-checklist .requirement.invalid .req-text {
    color: #dc2626;
}

/* Text */
.password-checklist .req-text {
    transition: color 0.2s ease;
}


/* =============================================
   SUBMIT BUTTON DISABLED STATE
   ============================================= */

/* Disabled button styling */
.btn-disabled,
button.btn-disabled,
.tf-btn.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
}

.btn-disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: not-allowed;
    pointer-events: auto;
}

/* Alternative disabled styles */
.btn-disabled-muted {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-disabled-outline {
    background-color: transparent !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}


/* =============================================
   ALTERNATIVE THEMES
   ============================================= */

/* Dark Theme */
.password-checklist.theme-dark {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.password-checklist.theme-dark .checklist-title {
    color: #e5e7eb;
}

.password-checklist.theme-dark .requirement.invalid .req-text {
    color: #fca5a5;
}

.password-checklist.theme-dark .requirement.valid .req-text {
    color: #6ee7b7;
}


/* Minimal Theme */
.password-checklist.theme-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0;
}

.password-checklist.theme-minimal .checklist-title {
    font-size: 12px;
    color: #6b7280;
}

.password-checklist.theme-minimal .req-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
}


/* Bordered Theme */
.password-checklist.theme-bordered {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.password-checklist.theme-bordered .requirement {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.password-checklist.theme-bordered .requirement:last-child {
    border-bottom: none;
}


/* Compact Theme */
.password-checklist.theme-compact {
    padding: 10px 14px;
}

.password-checklist.theme-compact .checklist-title {
    font-size: 11px;
    margin-bottom: 6px;
}

.password-checklist.theme-compact .requirement {
    padding: 4px 0;
    font-size: 12px;
}

.password-checklist.theme-compact .req-icon {
    width: 16px;
    height: 16px;
    font-size: 9px;
    margin-right: 8px;
}


/* =============================================
   UTILITY CLASSES FOR CUSTOM STYLING
   ============================================= */

/* No animation */
.password-checklist.no-animation {
    animation: none;
}

/* No shadow */
.password-checklist.no-shadow {
    box-shadow: none;
}

/* Rounded corners variants */
.password-checklist.rounded-sm {
    border-radius: 4px;
}

.password-checklist.rounded-lg {
    border-radius: 16px;
}

.password-checklist.rounded-none {
    border-radius: 0;
}

/* Icon style variants */
.password-checklist.icons-square .req-icon {
    border-radius: 4px;
}

.password-checklist.icons-none .req-icon {
    background: transparent !important;
    box-shadow: none !important;
    width: auto;
    height: auto;
}

.password-checklist.icons-none .requirement.valid .req-icon::before {
    content: '✓';
    color: #059669;
}

.password-checklist.icons-none .requirement.invalid .req-icon::before {
    content: '✕';
    color: #dc2626;
}

