.change-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.change-password-box {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-password-box h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.change-password-message {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.change-password-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.change-password-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.change-password-success p {
    margin: 5px 0;
}

.change-password-box .form-group {
    margin-bottom: 12px;
}

.change-password-box label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 13px;
}

.change-password-box input[type="password"],
.change-password-box input[type="text"],
.change-password-box input[type="email"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
}

.change-password-box input.username-readonly {
    background-color: #f5f5f5;
    color: #555;
    cursor: not-allowed;
}

.change-password-box input[type="submit"],
.change-password-box button[type="submit"] {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    background: #5bc0de;
    color: #fff;
    border: 1px solid #46b8da;
    border-radius: 3px;
}

.change-password-box input[type="submit"]:hover,
.change-password-box button[type="submit"]:hover {
    background: #31b0d5;
    border-color: #269abc;
}

.change-password-box input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-requirements {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 13px;
    max-width: 256px;
    box-sizing: border-box;
}

.password-requirements p {
    margin: 0 0 5px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 2px 0 2px 20px;
    position: relative;
}

.password-requirements li.req-pass::before {
    content: "\2713";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.password-requirements li.req-fail::before {
    content: "\2717";
    color: #dc3545;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.password-strength {
    margin: 10px 0;
    max-width: 256px;
    box-sizing: border-box;
}

.password-strength label {
    font-size: 13px;
    font-weight: bold;
    display: inline;
}

.strength-bar-container {
    background: #e9ecef;
    border-radius: 3px;
    height: 8px;
    margin: 5px 0;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    font-size: 12px;
    font-weight: bold;
}

.strength-feedback {
    font-size: 11px;
    color: #856404;
    background-color: #fff3cd;
    padding: 5px 8px;
    border-radius: 3px;
    margin-top: 8px;
    display: none;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

.generate-password-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    background: #5cb85c;
    color: #fff;
    border: 1px solid #4cae4c;
    border-radius: 3px;
    margin-bottom: 8px;
}

.generate-password-btn:hover {
    background: #449d44;
    border-color: #398439;
}

.copy-feedback {
    display: none;
    font-size: 12px;
    color: #28a745;
    margin-left: 8px;
    font-weight: bold;
}

.generated-password-display {
    display: none;
    font-family: monospace;
    font-size: 14px;
    background: #f0fff0;
    border: 1px solid #c3e6cb;
    padding: 6px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
    word-break: break-all;
}

.change-password-logout {
    text-align: center;
    margin-top: 15px;
}
