/* Login Page Styles - Arogyadiet App (matches Lakshman's Arogyagramam style) */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e8e0f5 0%, #f5e0eb 100%);
    padding: 16px;
}

.login-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 32px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.login-header .login-logo {
    display: block;
    margin: 0 auto 8px;
    max-width: 100% !important;
    max-height: 196px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.login-header h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: #6A4CAF;
    margin-bottom: 2px;
}

.login-header .login-subtitle {
    font-size: 0.85em;
    color: #666;
}

.login-container form {
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #6A4CAF;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #7c5cbf 0%, #6A4CAF 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 175, 0.4);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 12px;
    flex-shrink: 0;
}

.login-footer .forgot-link {
    display: block;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.login-footer .forgot-link:hover {
    text-decoration: underline;
}

.login-footer .back-link {
    color: #6A4CAF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}

.login-footer .back-link:hover {
    text-decoration: underline;
}

.login-footer .dashboard-desc {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 8px;
}

.error-msg {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.85em;
    display: none;
}

.error-msg.show {
    display: block;
}

.error-msg.success {
    background: #e8f5e9;
    color: #2e7d32;
}

