/* 1. RESET & GLOBAL */
html, body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0e3869;
    overflow-x: hidden;
}

/* 2. FLEX CONTAINER */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* 3. CARD */
.login-card {
    background: white;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

/* 4. LOGO */
.logo-wrapper {
    margin-bottom: 30px;
}
.logo-wrapper img {
    max-width: 140px;
    width: 100%;
    height: auto;
}

/* 5. INPUTS */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #dcdcdc;
    padding: 10px 0;
    font-size: 15px;
    color: #333 !important;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    box-sizing: border-box;
    /* Fix for Word/IE WebView */
    -webkit-text-fill-color: #333 !important;
    opacity: 1 !important;
}

.input-group input:focus {
    border-bottom: 2px solid #0e3869;
}

/* Placeholder visibility across ALL WebView engines */
.input-group input::-webkit-input-placeholder { color: #bbb !important; opacity: 1 !important; }
.input-group input::-moz-placeholder           { color: #bbb !important; opacity: 1 !important; }
.input-group input:-ms-input-placeholder       { color: #bbb !important; opacity: 1 !important; }
.input-group input:-moz-placeholder            { color: #bbb !important; opacity: 1 !important; }
.input-group input::placeholder                { color: #bbb !important; opacity: 1 !important; }

/* 6. ERROR MESSAGE */
.alert-error {
    background: #fff0f0;
    border-left: 3px solid #e74c3c;
    color: #c0392b;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

/* 7. BUTTONS */
.button-group {
    margin-top: 20px;
    width: 100%;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 13px 0;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    border: none;
    background-color: #13467e;
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: #0d325a;
}

/* 8. FOOTER */
.footer {
    margin-top: 24px;
    text-align: center;
    color: #aebfd4;
    font-size: 11px;
    line-height: 1.5;
    width: 100%;
    max-width: 400px;
}

/* 9. SMALL SCREENS */
@media (max-height: 600px) {
    .login-container {
        justify-content: flex-start;
        padding-top: 20px;
    }
}