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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header { 
    text-align: center; 
    margin-bottom: 35px; 
}

.login-header h1 { 
    color: #e53935; 
    font-size: 42px; 
    letter-spacing: 3px; 
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header h1 span {
    color: #e53935;
}

.login-header p { 
    color: #666; 
    font-size: 14px; 
    font-weight: 400;
}

.input-group { 
    margin-bottom: 22px; 
}

.input-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: #333; 
    font-size: 14px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus { 
    border-color: #e53935; 
    outline: none; 
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 57, 53, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: #ffebee;
    color: #d32f2f;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.forgot-btn {
    width: 100%;
    padding: 12px;
    background: #f0f2f5;
    color: #495057;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forgot-btn:hover {
    background: #e9ecef;
}

.login-footer { 
    margin-top: 25px; 
    text-align: center; 
    font-size: 12px; 
    color: #999; 
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer b {
    color: #e53935;
}

/* Modal Styles */
.modal { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content { 
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
}

.close-btn {
    background: #f0f2f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    gap: 10px;
}

.save-btn {
    padding: 12px 24px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}

.save-btn:hover {
    background: #c62828;
}

.cancel-btn {
    padding: 12px 24px;
    background: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}

.cancel-btn:hover {
    background: #dee2e6;
}
/* Password toggle eye icon styles */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px !important;
}

.eye-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.2s;
}

.eye-icon:hover {
    color: #333;
}