:root {
    --primary-color: #2196F3;
    --error-color: #ff3333;
    --success-color: #4CAF50;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-field {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
    z-index: 1;
}

.input-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-field input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-field input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.eye-slash {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-btn:hover {
    background-color: #1976D2;
}

.error-message, .success-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message {
    background-color: rgba(255, 51, 51, 0.1);
    color: var(--error-color);
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.forgot-password-link {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.create-account-section {
    text-align: center;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.create-account-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-account-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.terms-container {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 1rem;
}

.terms-container a {
    color: var(--primary-color);
    text-decoration: none;
}


/* Add this CSS to your login.css file */
.password-container {
    position: relative; /* Position relative for the input field */
}

.password {
    width: 100%; /* Ensure the input takes full width */
    padding-right: 40px; /* Add padding to the right to prevent text overlap with the icon */
    box-sizing: border-box; /* Include padding in the element's total width */
}

#toggle-password {
    position: absolute; /* Position the icon absolutely */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    pointer-events: all; /* Ensure the icon is clickable */
    z-index: 2; /* Ensure the icon is above the input field */
    
}