/* style.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.login-container {
    width: 350px;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo {
    font-size: 2rem;
    color: #000;
}

h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    color: #333;
}

p {
    color: #888;
    margin-bottom: 1.5rem;
}

.error {
    color: red;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: shake 0.3s;
}

form {
    display: flex;
    flex-direction: column;
}

.input-container {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    font-size: 0.9rem;
    color: #666;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, transform 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-bottom: 1px solid #333;
    transform: scale(1.05);
}

.password-wrapper {
    display: flex;
    align-items: center;
}

.toggle-password {
    cursor: pointer;
    margin-left: -25px;
    color: #333;
}


.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #555;
}

.toggle-password i {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    user-select: none; /* Prevents icon from being selectable */
}

/* Error animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
