/*
 * Auth Pages Styling (SignIn, SignUp)
 * Scoped to .form-access to avoid affecting other pages
 */

/* Validation message styling - override .form-access span (22px) from site.css */
.form-access .form-group span,
.form-access .custom-control span,
.form-access span.text-danger,
.form-access span[data-valmsg-for] {
    font-size: 12px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    min-height: 0;
}

.form-access .field-validation-error,
.form-access .form-group span.text-danger {
    color: #ef5350 !important;
}

.form-access .field-validation-valid {
    display: none;
}

/* Validation summary styling */
.form-access .validation-summary-errors,
.form-access div.text-danger.small {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding: 8px 12px;
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.3);
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-access .validation-summary-errors ul {
    margin: 0;
    padding-left: 16px;
    list-style: disc;
}

.form-access .validation-summary-errors ul li {
    margin-bottom: 2px;
}

.form-access .validation-summary-valid {
    display: none;
}

/* Input error state */
.form-access .input-validation-error {
    border-color: #ef5350 !important;
}

.form-access .input-validation-error:focus {
    border-color: #ef5350 !important;
    box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.2) !important;
}

/* Password requirements indicator */
.form-access .password-requirements {
    font-size: 0.7rem;
    color: #848e9c;
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(42, 46, 57, 0.5);
    border-radius: 4px;
    line-height: 1.5;
}

.form-access .password-requirements .req-item {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 2px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.form-access .password-requirements .req-item.valid {
    color: #26a69a;
    background: rgba(38, 166, 154, 0.15);
}

.form-access .password-requirements .req-item.invalid {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.15);
}

.form-access .password-requirements .req-item.neutral {
    color: #848e9c;
}

/* Password strength indicator */
.form-access .password-strength {
    margin-top: 6px;
}

.form-access .password-strength-bar {
    height: 4px;
    background: rgba(42, 46, 57, 0.8);
    border-radius: 2px;
    overflow: hidden;
}

.form-access .password-strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.form-access .password-strength-fill.weak {
    width: 25%;
    background: #ef5350;
}

.form-access .password-strength-fill.fair {
    width: 50%;
    background: #ffa726;
}

.form-access .password-strength-fill.good {
    width: 75%;
    background: #ffee58;
}

.form-access .password-strength-fill.strong {
    width: 100%;
    background: #26a69a;
}

.form-access .password-strength-text {
    font-size: 0.65rem;
    margin-top: 3px;
    text-align: right;
}

.form-access .password-strength-text.weak {
    color: #ef5350;
}

.form-access .password-strength-text.fair {
    color: #ffa726;
}

.form-access .password-strength-text.good {
    color: #ffee58;
}

.form-access .password-strength-text.strong {
    color: #26a69a;
}

/* Form group spacing adjustment */
.form-access .form-group {
    margin-bottom: 12px;
}

/* Checkbox styling fix */
.form-access .custom-control.custom-checkbox {
    margin-bottom: 8px;
}

.form-access .form-check-label {
    font-size: 0.8rem;
    color: #eaecef;
}

/* Small text utility - override Bootstrap */
.form-access .text-danger.small,
.form-access span.text-danger.small,
.form-access .form-group .text-danger {
    font-size: 12px !important;
    line-height: 1.3 !important;
    display: block;
    margin-top: 4px;
}

/* Password toggle button (optional enhancement) */
.form-access .password-wrapper {
    position: relative;
}

.form-access .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #848e9c;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.form-access .password-toggle:hover {
    color: #eaecef;
}

.form-access .password-wrapper input {
    padding-right: 40px;
}

/* Password hint icon with tooltip */
.form-access .input-with-hint {
    position: relative;
}

.form-access .input-with-hint input {
    padding-right: 40px;
}

.form-access .hint-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #848e9c;
    cursor: help;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 2;
}

.form-access .hint-icon:hover {
    color: #2962ff;
}

/* Tooltip */
.form-access .hint-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1e222d;
    border: 1px solid #2a2e39;
    border-radius: 6px;
    padding: 12px 14px;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    z-index: 100;
}

.form-access .hint-icon:hover + .hint-tooltip,
.form-access .hint-tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip arrow */
.form-access .hint-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: #1e222d;
    border-left: 1px solid #2a2e39;
    border-top: 1px solid #2a2e39;
    transform: rotate(45deg);
}

.form-access .hint-tooltip-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #eaecef;
    margin-bottom: 8px;
    display: block;
}

.form-access .hint-tooltip-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.form-access .hint-tooltip-list li {
    font-size: 0.7rem;
    color: #848e9c;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.form-access .hint-tooltip-list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: #2962ff;
}
