:root {
    --primary-blue: #1848a0;
    --light-bg: #e1ecf7;
    --text-dark: #001f65;
    --gradient-btn: linear-gradient(180deg, #001f65 0%, #6895fd 100%);
    --emergency-red: linear-gradient(180deg, #d9534f 0%, #ff4d4d 100%);
    --success-green: #2e7d32;
    --fs-h1: 2rem; 
    --fs-h2: 1.4rem; 
    --fs-body: 1rem; 
    --fs-small: 0.85rem;
}

*, *::before, *::after { 
    box-sizing: border-box; 
}

html { 
    font-size: 16px; 
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    :root { --fs-h1: 1.6rem; --fs-h2: 1.25rem; }
}

body {
    margin: 0; padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    height: 100vh;
    height: 100dvh; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; }

.header { 
    background-color: var(--primary-blue); 
    padding: 15px 20px 25px 20px; 
    color: white; display: flex; justify-content: center; align-items: center;
    flex-shrink: 0; 
}
.header-content { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; width: 100%; }
.logo-img { width: auto; height: 100px; }
.header-text h1 { margin: 0; font-size: var(--fs-h1); font-weight: 800; letter-spacing: 0.5px; line-height: 1.1; }
.text-now { color: #bfe5ef; }
.header-text p { opacity: 0.9; font-size: var(--fs-small); margin: 2px 0 0; }

.status-icon-circle {
    display: none !important;
}

.status-card {
    padding-top: 2rem;
}

.status-card h2 {
    margin-top: 0;
}

@media (min-width: 768px) {
    .header { padding: 25px 20px 35px 20px; }
    .header-content { flex-direction: row; text-align: left; justify-content: center; gap: 15px; }
}

.login-container { 
    display: flex; justify-content: center; align-items: flex-start; 
    margin-top: -15px; padding: 0 15px 15px; 
    flex: 1; 
    overflow: hidden; 
}
.login-card { 
    background: white; padding: 1.2rem 1.2rem; border-radius: 30px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; max-width: 420px; text-align: center; 
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.card-scrollable-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.card-scrollable-content::-webkit-scrollbar { width: 4px; }
.card-scrollable-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.welcome-title { color: var(--text-dark); font-size: var(--fs-h2); margin: 0 0 2px; }
.welcome-text { color: #666; margin-bottom: 12px; font-size: var(--fs-small); line-height: 1.3; }

.input-group { 
    position: relative;
    margin-bottom: 10px; 
    width: 100%; 
    display: flex;
    align-items: center;
}
.input-group svg:not(.eye-icon) {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    z-index: 2;
}
.input-group input { 
    width: 100%; padding: 10px 45px 10px 45px; border: 2px solid var(--primary-blue); 
    border-radius: 12px; font-size: var(--fs-body); font-family: inherit; 
    color: var(--text-dark); background-color: #fff; outline: none;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    fill: #ccc !important;
    z-index: 10 !important;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.eye-icon.active {
    opacity: 1;
    pointer-events: auto;
}

.remember-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 0.8rem;
    color: #4b5563;
    margin: 2px 0 12px;
    line-height: 1.3;
    cursor: pointer;
}

.remember-row input {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
    cursor: pointer;
}

.remember-row span {
    flex: 1;
}

.forgot-link {
    display: block;
    text-align: right;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.login-btn, .status-btn { 
    width: 100%; padding: 11px; border: none; border-radius: 30px; 
    font-size: var(--fs-body); font-weight: bold; cursor: pointer; transition: transform 0.2s, opacity 0.2s; 
}
.login-btn { background: var(--gradient-btn); color: white; margin-top: 0px; }
.status-btn { margin-top: 20px; background: var(--primary-blue); color: white; }
.login-btn:active, .status-btn:active { transform: scale(0.97); }

.signup-text {
    margin-top: 15px;
    font-size: var(--fs-small);
    color: #666;
}
.signup-text a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
}

.error-msg {
    display: none;
    color: #d9534f;
    background: #f9f2f2;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    border: 1px solid #ffcccc;
}

.modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); 
    display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(4px); padding: 20px;
}
.modal.is-open {
    display: flex;
}
.status-card { 
    background: white; padding: 2.2rem 1.8rem; border-radius: 25px; text-align: center; 
    width: 100%; max-width: 430px; max-height: 85vh; overflow-y: auto; box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}
.status-icon-circle { width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 15px; font-size: 36px; color: white; }
.status-icon-circle.failed { background: #e93446; }
.status-icon-circle.success { background: #2e7d32; }