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

body {
    margin: 0;
    min-height: 100vh;
}

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #071a2b 0%,
            #0d2b42 45%,
            #103b57 100%
        );
}

.login-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.65;
}

.login-glow-1 {
    width: 420px;
    height: 420px;
    top: -150px;
    left: -100px;
    background: rgba(0, 176, 255, 0.28);
}

.login-glow-2 {
    width: 520px;
    height: 520px;
    bottom: -250px;
    right: -150px;
    background: rgba(52, 211, 153, 0.16);
}

.login-grid {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.2) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.2) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
}

.login-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    overflow: hidden;
    animation: loginCardShow 0.6s ease-out;
}

@keyframes loginCardShow {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card-header {
    position: relative;
    padding: 42px 35px 30px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            #0b2940,
            #123e5a
        );
    overflow: hidden;
}

.login-card-header::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -130px;
    right: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.login-card-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: -130px;
    left: -40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.login-logo-wrapper {
    position: relative;
    z-index: 2;
    height: 96px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #ffffff;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
}

.login-logo {
    max-height: 72px;
    object-fit: contain;
}

.login-heading {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.login-heading h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
}

.login-heading p {
    margin: 0;
    font-size: 13px;
    opacity: 0.72;
}

.login-card-body {
    padding: 32px 35px 25px;
}

.login-form-fields .mb-3 {
    margin-bottom: 22px !important;
}

.login-form-fields label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #3c4b57;
}

.login-form-fields .form-control {
    height: 48px;
    border: 1px solid #d9e0e5;
    border-radius: 12px;
    background: #f9fbfc;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-form-fields .form-control:focus {
    border-color: #17698f;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(23, 105, 143, 0.1);
}

.login-password-field {
    position: relative;
}

.login-password-field .form-control {
    padding-inline-end: 50px;
}

.password-toggle {
    position: absolute;
    top: 35px;
    inset-inline-end: 10px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7d8a94;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.password-toggle:hover {
    color: #17698f;
    background: #eef5f8;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 13px;
}

.remember-me {
    margin: 0;
}

.remember-me .form-check-input {
    cursor: pointer;
}

.remember-me .form-check-label {
    color: #61707b;
    cursor: pointer;
}

.forgot-password-link {
    color: #17698f;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password-link:hover {
    color: #0b4f70;
}

.login-submit-button {
    position: relative;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #17698f,
            #0f5578
        );
    box-shadow:
        0 12px 24px rgba(15, 85, 120, 0.25);
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-submit-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 30px rgba(15, 85, 120, 0.32);
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-button-icon {
    position: absolute;
    inset-inline-end: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.login-submit-button:hover .login-button-icon {
    transform: translateY(-50%) translateX(3px);
}

.login-button-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.login-button-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    animation: loginLoader 0.8s infinite alternate;
}

.login-button-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.login-button-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loginLoader {
    to {
        opacity: 0.35;
        transform: translateY(-4px);
    }
}

.login-submit-button.loading {
    pointer-events: none;
}

.login-submit-button.loading .login-button-text,
.login-submit-button.loading .login-button-icon {
    display: none;
}

.login-submit-button.loading .login-button-loader {
    display: flex;
}

.login-card-footer {
    padding: 0 35px 30px;
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5eaee;
}

.login-divider span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #17698f;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.login-links a {
    color: #697883;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-links a:hover {
    color: #17698f;
}

.login-links i {
    margin-inline-end: 5px;
}

.login-language {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.login-language .lang-chooser-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #e3e9ed;
    border-radius: 10px;
    background: #f8fafb;
}

.login-language .lang-options-menu {
    position: absolute;
    bottom: 42px;
    left: 50%;
    display: flex;
    gap: 5px;
    padding: 7px;
    border: 1px solid #e3e9ed;
    border-radius: 9px;
    background: #ffffff;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

.login-rtl {
    text-align: right;
}

.login-rtl .login-card-header,
.login-rtl .login-card-footer {
    text-align: center;
}

.login-ltr {
    text-align: left;
}

.login-ltr .login-card-header,
.login-ltr .login-card-footer {
    text-align: center;
}

@media (max-width: 576px) {

    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        border-radius: 20px;
    }

    .login-card-header {
        padding:
            30px
            22px
            24px;
    }

    .login-card-body {
        padding:
            25px
            22px
            20px;
    }

    .login-card-footer {
        padding:
            0
            22px
            25px;
    }

    .login-logo-wrapper {
        height: 80px;
        border-radius: 20px;
    }

    .login-logo {
        max-height: 60px;
    }

    .login-heading h1 {
        font-size: 22px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

}

.login-form-errors {
    margin-bottom: 20px;
}

.login-form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    font-size: 14px;
    line-height: 1.6;
}

.login-form-error i {
    flex-shrink: 0;
}

.login-license {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    background: rgba(100, 116, 139, 0.05);
    direction: ltr;
}

.login-license-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-size: 17px;
}

.login-license-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.login-license-label {
    font-size: 12px;
    color: var(--bs-secondary-color, #64748b);
}

.login-license-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-body-color, #334155);
    overflow-wrap: anywhere;
    unicode-bidi: plaintext;
}

.login-rtl .login-license {
    direction: rtl;
}

.login-rtl .login-license-info {
    align-items: flex-start;
    text-align: right;
}

.login-ltr .login-license-info {
    align-items: flex-start;
    text-align: left;
}