/* Password strength indicator */
.password-strength {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 2px;
}
.password-strength-bar {
    height: 6px;
    border-radius: 4px;
    background: #444;
    width: 0;
    transition: width 0.3s, background 0.3s;
    margin-bottom: 2px;
}
.password-strength-text {
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
}
/* forms.css - Styles for form layout and input alignment */

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4px 0;
}
.form-label {
    min-width: 120px;
    margin-right: 12px;
    text-align: left;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: #ccc;
    font-weight: 300;
    font-size: 14px;
}
.form-input {
    flex: 1 1 0;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #222;
    color: #eee;
    font-size: 12px;
    width: 100%;
}

.readonly-input {
    flex: 1 1 0;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #333;
    color: #888;
    font-size: 12px;
    width: 100%;
}

.form-input:focus {
    border-color: #33aaff;
    outline: none;
    box-shadow: 0 0 5px rgba(51, 170, 255, 0.5);
}

/* Style for input[type="datetime-local"] */
input[type="datetime-local" i] {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #222;
    color: #eee;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="datetime-local" i]:focus {
    border-color: #33aaff;
    outline: none;
    box-shadow: 0 0 5px rgba(51, 170, 255, 0.5);
}

/* Make the calendar icon white in Chromium browsers */
input[type="datetime-local" i]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* For dark theme autofill */
input[type="datetime-local" i]:-webkit-autofill {
    -webkit-text-fill-color: #eee;
    caret-color: #eee;
    -webkit-box-shadow: 0 0 0 1000px #222 inset;
    box-shadow: 0 0 0 1000px #222 inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* Keep dark theme colors when browser autofill is applied. */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #eee;
    caret-color: #eee;
    -webkit-box-shadow: 0 0 0 1000px #222 inset;
    box-shadow: 0 0 0 1000px #222 inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* Align checkbox and links in forms */
.form-options {
    display: inline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.form-remember {
    margin-bottom: 0;
}
.forgot-password {
    margin-left: 16px;
    text-decoration: none;
    font-size: 0.98em;
}
.forgot-password:hover {
    text-decoration: underline;
}

