* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    /* overflow: hidden; */
    background: url('/assets/img/sky.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0, 70, 70, 0.38), rgba(0, 0, 0, 0.42)),
        radial-gradient(circle at top left, rgba(0, 255, 255, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 128, 128, 0.28), transparent 35%);
    z-index: 0;
}

.login-page-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.circle-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    background-image: radial-gradient(
        hsl(180, 100%, 80%),
        hsl(180, 100%, 80%) 10%,
        hsla(180, 100%, 80%, 0) 56%
    );
    animation: fadein-frames 200ms infinite, scale-frames 2s infinite;
}

@keyframes fadein-frames {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes scale-frames {
    0% {
        transform: scale3d(0.4, 0.4, 1);
    }

    50% {
        transform: scale3d(2.2, 2.2, 1);
    }

    100% {
        transform: scale3d(0.4, 0.4, 1);
    }
}

#layoutAuthentication {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#layoutAuthentication_content {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px 105px;
}

.login-main {
    width: 100%;
}

.login-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border: 0;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-card-header {
    position: relative;
    text-align: center;
    padding: 32px 25px 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #006d6d, #008b8b 45%, #00a6a6);
    overflow: hidden;
}

.login-card-header::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    top: -100px;
    right: -70px;
}

.login-card-header::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    bottom: -70px;
    left: -45px;
}

.brand-badge {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.login-card-header h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.login-card-header p {
    position: relative;
    z-index: 2;
    margin: 8px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.login-card-body {
    padding: 34px 34px 28px;
}

.login-title {
    color: #0f172a;
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.login-subtitle {
    color: #667085;
    font-size: 14px;
    text-align: center;
    margin-bottom: 26px;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.09);
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.16);
}

.login-input-group {
    margin-bottom: 18px;
}

.login-input {
    height: 58px;
    font-size: 16px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 128, 128, 0.22);
    color: #111827;
    box-shadow: none;
}

.login-input::placeholder {
    color: rgba(17, 24, 39, 0.45);
}

.login-input:focus {
    background-color: #ffffff;
    border-color: #008080;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.14);
}

.form-floating label {
    color: #667085;
}

.password-field {
    position: relative;
}

.password-input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 128, 128, 0.10);
    color: #007f7f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.25s ease;
}

.password-toggle:hover {
    background: rgba(0, 128, 128, 0.18);
    color: #005f5f;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.14);
}

.login-action {
    margin-top: 24px;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #007f7f, #00a3a3);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 30px rgba(0, 128, 128, 0.32);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #006666, #008f8f);
    box-shadow: 0 18px 38px rgba(0, 128, 128, 0.42);
}

.btn-login:active {
    transform: translateY(0);
}

.login-card-footer {
    padding: 0 34px 32px;
    text-align: center;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #667085;
    font-size: 13px;
    background: rgba(0, 128, 128, 0.08);
    padding: 9px 14px;
    border-radius: 999px;
}

#layoutAuthentication_footer {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.auth-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 22px;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.footer-card {
    width: fit-content;
    max-width: 95%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
    color: #344054;
    font-size: 14px;
    font-weight: 500;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #006d6d;
    font-weight: 800;
    white-space: nowrap;
}

.footer-logo {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #008080, #00b3b3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.35);
}

.footer-copy {
    color: #475467;
    white-space: nowrap;
}

.company-name {
    color: #007f7f;
    font-weight: 800;
}

.divider-dot {
    margin: 0 8px;
    color: #98a2b3;
}

@media (max-width: 576px) {
    html,
    body {
        overflow-y: auto;
    }

    .login-page-wrapper {
        min-height: 100vh;
        height: auto;
        overflow: hidden;
    }

    #layoutAuthentication_content {
        align-items: flex-start;
        padding-top: 35px;
        padding-bottom: 140px;
    }

    .login-card {
        border-radius: 22px;
    }

    .login-card-header {
        padding: 28px 20px 22px;
    }

    .login-card-header h3 {
        font-size: 26px;
    }

    .login-card-body {
        padding: 28px 22px 22px;
    }

    .login-card-footer {
        padding: 0 22px 28px;
    }

    .auth-footer {
        bottom: 14px;
    }

    .footer-card {
        flex-direction: column;
        gap: 6px;
        border-radius: 18px;
        padding: 12px 16px;
        text-align: center;
    }

    .footer-copy {
        white-space: normal;
        line-height: 1.5;
    }
}