.form-group {
    /*margin-bottom: 25px;*/
    position: relative;
    /*min-height: 80px;*/
    margin-bottom: 15px;
}

.password-field {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 0;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    z-index: 2;
}

.password-toggle i {
    font-size: 18px !important;
    color: #666 !important;
    transition: color 0.3s ease;
    display: block !important;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.password-toggle:hover i {
    color: #333 !important;
}

.form-group input {
    width: 100%;
    padding-right: 35px;
    box-sizing: border-box;
}

/* Đảm bảo tất cả các input trong form có cùng kích thước */
.login-page .login-content form input,
.login-page .login-content form .password-field,
.register-page .register-content form input,
.register-page .register-content form .password-field {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Validation message styles */
.validation-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 12px;
    margin-left: 0px;
    min-height: 40px;
    position: absolute;
    bottom: -45px;
    left: 0;
    pointer-events: none;
    width: 100%;
}

.validation-message.show {
    display: block;
}

/* Login error message styles */
.login-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 16px;
    text-align: left;
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
}

.login-error-message.show {
    display: block;
}

/* Validation summary styles */
.validation-summary-errors {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 16px;
    text-align: left;
    list-style: none;
    padding: 0;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0;
}

.validation-summary-errors li {
    margin: 4px 0;
}

#validation-summary-container {
    margin-top: 8px;
    margin-bottom: 16px;
    margin-left: 3px;
    position: relative;
}

/* Custom validation error message styles */
.validation-error-message {
    margin-top: 4px;
    margin-bottom: 16px;
    text-align: left;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    margin: 4px 0;
    padding: 0;
}

/* Forgot password link styles */
.forgot-password-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin: 8px 0;
    cursor: pointer;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Disabled button styles */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .password-toggle {
        right: 12px;
        width: 22px;
        height: 22px;
    }

    .password-toggle img {
        width: 16px;
        height: 16px;
    }

    .password-field input[type="password"],
    .password-field input[type="text"] {
        padding-right: 35px;
    }
} 