:root {
    --teal-primary: #1a4d4d;
    --teal-dark: #0e3535;
    --teal-light: #236b6b;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-light: #e2e8f0;
    --bg-light: #f8fafc;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --info-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a4d4d 0%, #2c6e6e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: white;
    border-radius: 28px;
    padding: 48px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* Brand Styling */
.brand {
    font-size: 32px;
    font-weight: 700;
    color: #1a4d4d;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: #e67e22;
    font-size: 36px;
}

.brand span {
    color: #e67e22;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-header p {
    color: #64748b;
    font-size: 14px;
}

/* Alert Messages */
.error-msg, .success-msg {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.error-msg {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.error-msg i {
    font-size: 16px;
}

.success-msg {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.success-msg i {
    font-size: 16px;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 16px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1a4d4d;
    box-shadow: 0 0 0 3px rgba(26, 77, 77, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 2;
    font-size: 16px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #1a4d4d;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
}

.forgot-password a {
    font-size: 12px;
    color: #1a4d4d;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Button Styles */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a4d4d 0%, #236b6b 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 77, 77, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.login-footer {
    margin-top: 32px;
    font-size: 12px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 18px;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #94a3b8;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #dc2626;
}

.btn-modal {
    background: #1a4d4d;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

.btn-modal:hover {
    background: #236b6b;
}

hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .brand {
        font-size: 28px;
    }
    
    .brand i {
        font-size: 32px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
}