/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.logo-img {
    max-width: 160px;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
}

.login-form button {
    padding: 14px;
    background-color: #007BFF;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* Bottom text */
.signup-text {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.signup-text a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 500;
}

.signup-text a:hover {
    text-decoration: underline;
}

/* ...existing styles... */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f9f9f9;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-form .toggle-password:hover {
    background-color: transparent;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
    fill: #555;
    transition: fill 0.3s ease;
}

.toggle-password:hover svg {
    background: transparent;
}

.password-wrapper button {
    background-color: #f9f9f9;
    background: transparent;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
    margin-bottom: 10px;
}

.forgot-password a {
    font-size: 14px;
    color: #007BFF;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    display: none;
}
ul {
    list-style-type: none;
}
.form-error {
    color: #b30000;                /* Red text */
    background-color: #ffe6e6;     /* Light red background */
    border: 1px solid #b30000;     /* Red border */
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}

button.loading {
    opacity: 0.6;
    pointer-events: none;
}
