html,
body {
    min-height: 100%;
}

.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #e4e4e4;
    font-family: "Nunito", "Segoe UI", Arial, sans-serif;
}

.login-shell {
    width: min(100%, 1116px);
}

.login-card {
    min-height: 383px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1.5rem 3.5rem rgba(15, 23, 42, 0.18);
}

.login-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #8b879a;
    text-align: center;
}

.login-brand h1 {
    margin: 0 0 3rem;
    font-size: clamp(1.55rem, 2.1vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0;
}

.login-brand img {
    width: 200px;
    max-width: 72%;
    height: auto;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #1c4169;
    color: #fff;
}

.login-form-panel form {
    width: min(100%, 462px);
}

.login-form-panel .form-label {
    color: #fff;
    font-weight: 700;
}

.custom-input {
    min-height: 2.4rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-input:focus {
    background: transparent;
    border-color: #f08c28;
    color: #fff;
    box-shadow: 0 0 0 0.22rem rgba(240, 140, 40, 0.24);
}

.was-validated .custom-input:valid,
.custom-input.is-valid {
    border-color: rgba(255, 255, 255, 0.35);
    background-image: none;
}

.was-validated .custom-input:valid:focus,
.custom-input.is-valid:focus {
    border-color: #f08c28;
    box-shadow: 0 0 0 0.22rem rgba(240, 140, 40, 0.24);
}

.password-field {
    position: relative;
}

.password-field .custom-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: 0;
}

.custom-btn {
    width: min(100%, 231px);
    min-height: 2.65rem;
    background: #f08c28;
    border: 0;
    color: #fff;
    font-weight: 700;
}

.custom-btn:hover,
.custom-btn:focus {
    background: #df7d18;
    color: #fff;
}

.login-mobile-logo {
    width: 96px;
    height: auto;
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 1rem;
    }

    .login-card {
        min-height: auto;
    }

    .login-form-panel {
        min-height: 100%;
        padding: 2rem 1.25rem;
    }

    .custom-btn {
        width: 100%;
    }
}
