:root {
    --primary-color: #2b4191;
    --secondary-color: #545b62;
    --bg-color: #f0f2f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 10px;
}

.logo {
    display: block;
    margin: 0 auto 15px auto; /* Centers the image and adds space below it */
    max-width: 120px;         /* Restricts width so it fits nicely in the card */
    height: auto;             /* Maintains aspect ratio */
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    margin-top: 10px;
}

.header-text {
    text-align: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
}

input {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"] {
    min-width: 0;
    position: relative;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    color: white;
}

#pwdBtn { background-color: var(--primary-color); }
#mfaBtn { background-color: var(--secondary-color); }

button:disabled { opacity: 0.5; }

#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.success { background: #e7f4e9; color: #1e4620; border: 1px solid #c3e6cb; }
.error { background: #fceaea; color: #711919; border: 1px solid #f5c6cb; }

.pass-box {
    background: #fff;
    padding: 10px;
    border: 2px dashed var(--primary-color);
    margin: 10px 0;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3); /* Light ring */
    border-radius: 50%;
    border-top: 3px solid #ffffff; /* White spinning top */
    width: 18px;
    height: 18px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.help-text {
    text-align: center;
    font-size: 0.85rem;      /* Smaller than the button text [3] */
    color: #666;             /* Grey color to differentiate from primary text [4] */
    margin-top: -5px;        /* Pulls text closer to the button above it */
    margin-bottom: 10px;     /* Adds space before the next element */
    line-height: 1.3;
}

