
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    width: 100%;
    background-image: url("../Images/PrecisionLoginBackground.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5vw 6vw;
}

.login-card {
    width: min(100%, 490px);
    padding: 55px 48px;
    background: linear-gradient( 145deg, rgba(5, 37, 83, 0.96), rgba(7, 45, 110, 0.96) );
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: #fff;
    text-align: center;
}

    .login-card h1 {
        margin: 0 0 34px;
        font-size: 34px;
        font-weight: 700;
    }

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 12px;
    padding: 0 75px 0 54px;
    background: #f5f8ff;
    color: #143d78;
    font-size: 17px;
    outline: none;
}

    .login-input:focus {
        box-shadow: 0 0 0 3px #4aa3ff;
    }

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #17457d;
    font-size: 23px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #17457d;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 62px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 180deg, #04b7f5, #0054ed );
    color: white;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
}

    .login-button:hover {
        filter: brightness(1.1);
    }

.login-links {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .login-links a {
        color: #fff;
        font-size: 16px;
        text-decoration: underline;
    }

.login-error {
    background: #a51e38;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .login-page {
        justify-content: center;
        padding: 24px;
    }

    .login-card {
        padding: 36px 24px;
    }

        .login-card h1 {
            font-size: 28px;
        }
}


.login-loading[hidden] {
    display: none !important;
}

.login-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
}

.login-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: loginSpin 0.7s linear infinite;
}

.login-button.is-loading {
    opacity: 0.75;
    cursor: wait;
}

@keyframes loginSpin {
    to {
        transform: rotate(360deg);
    }
}

