* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

body {
    font-family: "Lato", Arial, Helvetica, sans-serif;
    min-height: 100vh;
    /* deep brand blue, so the white / red / green / yellow status
       messages login.js writes all stay readable on top of it */
    background: radial-gradient(1200px 600px at 15% 10%, #0a86e0 0%, transparent 55%),
                radial-gradient(900px 600px at 85% 85%, #00509a 0%, transparent 55%),
                linear-gradient(160deg, #012c4d 0%, #014576 45%, #006ebd 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

input, a, button {
    outline: none !important;
    border: none !important;
    overflow: visible !important;
}

/* Loader */
.loaderContainer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 19999;
	background-color: rgba(0, 0, 0, 0.2);
}

.loaderContainer i {
	font-size: 50px;
	color: #212121;
}
/* END OF Loader */


/* Soft glows floating behind the card */
.loginGlow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.loginGlow--one {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: #23a6ff;
}
.loginGlow--two {
    width: 460px;
    height: 460px;
    bottom: -160px;
    right: -120px;
    background: #0050a0;
}


#mainContainer {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    position: relative;
    z-index: 5;
}


/* ---------------- Login card ---------------- */

#loginFormContainer {
    width: 100%;
    max-width: 420px;
    padding: 34px 30px 28px;
    z-index: 5;
    border-radius: 22px;
    /* frosted glass over the gradient */
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 30px 70px rgba(0, 20, 40, 0.45);
    animation: loginCardIn 0.5s ease both;
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logoContainer {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.logoContainer img.loginLogo {
    /* the logo files have a solid blue background, so it is presented
       as an app-icon tile rather than a floating rectangle */
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.loginTagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-top: 12px;
}


/* ---------------- Status message ---------------- */

#loginFormMessage {
    min-height: 34px;
    padding-top: 4px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
}

/* login.js writes <font color="red|yellow|green|white">. Lift those
   colours so they keep enough contrast on the blue glass. */
#loginFormMessage font[color="red"]    { color: #ff9c9c !important; }
#loginFormMessage font[color="yellow"] { color: #ffe083 !important; }
#loginFormMessage font[color="green"]  { color: #8bf0ae !important; }
#loginFormMessage font[color="white"]  { color: #ffffff !important; }


/* ---------------- Inputs ---------------- */

.loginInput {
    width: 100%;
    height: 48px;
    margin-bottom: 12px;
    padding: 0 16px 0 46px;          /* room for the icon */
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.12);
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff;
    font-size: 15px;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.loginInput::placeholder { color: rgba(255, 255, 255, 0.58); }

.loginInput:focus {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(35, 166, 255, 0.22);
}

/* Chrome autofill would otherwise paint the field white */
.loginInput:-webkit-autofill,
.loginInput:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #0b5b96 inset;
    caret-color: #ffffff;
}

.loginInput--mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E");
}
.loginInput--lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}


/* ---------------- Remember me ---------------- */

.loginRemember {
    padding-left: 2.6em;
    margin: 4px 0 18px;
}
.loginRemember .form-check-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
}
.form-check-input {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.form-check-input:checked {
    background-color: #23a6ff;
    border-color: #23a6ff !important;
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(35, 166, 255, 0.25);
}


/* ---------------- Buttons ---------------- */

/* Block-level so a hidden one collapses without leaving a gap:
   login.js toggles these three individually. */
.loginBtns {
    display: block;
    width: 100%;
    height: 48px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #ffffff;
    color: #005b9e;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.loginBtns:hover {
    background: #eaf5ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.loginBtns:active { transform: translateY(0); }


/* ---------------- Footer links ---------------- */

#forgotPasswordBtnContainer {
    width: 100%;
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

#forgotPasswordBtnContainer a {
    font-size: 13.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.15s ease;
}
#forgotPasswordBtnContainer a:hover {
    color: #ffffff;
    text-decoration: underline;
}


.redColor   { color: #E32D2D; }
.greenColor { color: #21B541; }


/* ---------------- Small screens ---------------- */

@media (max-width: 480px) {
    #loginFormContainer { padding: 26px 20px 22px; border-radius: 18px; }
    .logoContainer img.loginLogo { width: 74px; height: 74px; }
    #forgotPasswordBtnContainer { justify-content: center; text-align: center; }
}
