body {
    background: linear-gradient(135deg, #e6f2ff 0%, #d4ebfc 50%, #badafa 100%);
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px 40px 20px; /* Enhanced vertical padding bounds */
}
.main-title-container {
    text-align: center;
    margin-bottom: 30px; /* Forces spacious clearance above the card */
}
.main-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0284c7;
}
.main-subtitle {
    font-size: 11px;
    color: #0284c7;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}
.premium-login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    padding: 50px 45px; /* Restored massive internal layout grid padding */
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.12);
    margin: 0 auto auto auto; /* Aligns and spaces elements exactly like v1.0 reference */
    text-align: left;
}
.card-heading {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.card-subtext {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 35px; /* Generous breathing space below text entry titles */
}
.custom-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px; /* Perfectly gaps input blocks from overlapping */
}
.custom-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.custom-input {
    width: 100%;
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}
.custom-input::placeholder {
    color: #94a3b8;
}
.custom-input:focus {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.custom-btn-submit {
    width: 100%;
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease-in-out;
    margin-top: 15px; /* Fixed: Prevents button from sticking to bottom card border */
}
.custom-btn-submit:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -3px rgba(3, 105, 161, 0.4);
}
.custom-btn-submit:active {
    transform: translateY(0);
}
.alert-error-box {
    background-color: #fff1f2;
    border: 1px solid #ffe4e6;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}
.footer-container {
    width: 100%;
    margin-top: auto; /* Keeps footer pinned safely to bottom viewport row */
}
