/***
zEMS — Executive Login Page
***/

/* ---- Page background ---- */
.login {
    background: #0b1f2a !important;
    background: radial-gradient(circle at 15% 15%, #12655c 0%, rgba(18,101,92,0) 45%),
                radial-gradient(circle at 85% 85%, #123a52 0%, rgba(18,58,82,0) 50%),
                linear-gradient(135deg, #0b1f2a 0%, #12303d 55%, #0d3b39 100%) !important;
    min-height: 100vh;
    font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

.login .menu-toggler,
.login .logo {
    display: none !important;
}

/* ---- Stage (centering) ---- */
.login-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

/* ---- Card ---- */
.login-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 540px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   Left — brand hero panel
   ========================================================= */
.login-hero {
    position: relative;
    flex: 0 0 45%;
    max-width: 45%;
    padding: 48px 44px;
    color: #eafcf7;
    background: linear-gradient(150deg, #0d4f4a 0%, #12766b 48%, #1aa08d 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.login-hero__glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.login-hero:before {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.login-hero__content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
}

.login-hero__logo {
    display: inline-block;
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    margin-bottom: 34px;
}

.login-hero__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.login-hero__title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px 0;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.login-hero__subtitle {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 30px 0;
    color: rgba(234, 252, 247, 0.82);
}

.login-hero__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-hero__features li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 0;
    display: flex;
    align-items: center;
}

.login-hero__features li i {
    width: 34px;
    height: 34px;
    margin-right: 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.login-hero__footnote {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12.5px;
    color: rgba(234, 252, 247, 0.7);
    letter-spacing: 0.3px;
}

/* =========================================================
   Right — form panel
   ========================================================= */
.login-form-panel {
    flex: 1 1 55%;
    max-width: 55%;
    padding: 52px 54px 32px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.login .content {
    background: transparent;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    position: relative;
    border-radius: 0;
}

.login-welcome {
    margin-bottom: 26px;
}

.login .content h3,
.login .content .form-title {
    color: #16324a;
    text-align: left;
    font-size: 28px;
    font-weight: 700 !important;
    margin: 0 0 6px 0;
}

.login-welcome__hint {
    color: #8a97a6;
    font-size: 14px;
    margin: 0;
}

/* ---- Fields ---- */
.login .content .login-form {
    padding: 0;
    margin: 0;
}

.login .content .form-group {
    margin-bottom: 18px;
}

.login-field {
    position: relative;
}

.login-field__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa7b5;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s ease;
}

.login .content .form-control {
    border: 1px solid #dfe5ec;
    background-color: #f6f8fb;
    height: 50px;
    color: #33465a;
    font-size: 14px;
    border-radius: 10px;
    padding-left: 44px;
    box-shadow: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login .content .form-control:focus,
.login .content .form-control:active {
    border: 1px solid #1aa08d;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 160, 141, 0.14);
    outline: none;
}

.login-field input:focus + .login-field__icon,
.login-field:focus-within .login-field__icon {
    color: #1aa08d;
}

.login .content .form-control::-moz-placeholder { color: #9aa7b5; opacity: 1; }
.login .content .form-control:-ms-input-placeholder { color: #9aa7b5; }
.login .content .form-control::-webkit-input-placeholder { color: #9aa7b5; }

/* ---- Actions ---- */
.login .content .form-actions {
    clear: both;
    border: 0;
    padding: 0;
    margin: 6px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.login .content .form-actions .btn-success {
    order: 3;
    flex: 1 1 100%;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.4px;
    height: 50px;
    padding: 0 20px !important;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #12766b 0%, #1aa08d 100%);
    box-shadow: 0 12px 24px rgba(26, 160, 141, 0.32);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: 12px;
}

.login .content .form-actions .btn-success:hover,
.login .content .form-actions .btn-success:focus {
    filter: brightness(1.05);
    box-shadow: 0 16px 30px rgba(26, 160, 141, 0.42);
    color: #ffffff;
}

.login .content .form-actions .btn-success:active {
    transform: translateY(1px);
}

.login .content .form-actions .btn-success i {
    margin-left: 6px;
    font-size: 13px;
}

.login .content .check,
.login .content .rememberme {
    color: #7a8796;
    font-size: 13.5px;
    font-weight: 400;
    margin: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.login .content .rememberme input {
    margin: 0 7px 0 0;
}

.login .content .forget-password {
    font-size: 13.5px;
    color: #1aa08d;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

.login .content .forget-password:hover {
    text-decoration: underline;
}

/* ---- Social login ---- */
.login-options {
    margin: 26px 0 6px;
    overflow: hidden;
    padding-top: 22px;
    border-top: 1px solid #eef1f5;
}

.login-options h4 {
    float: left;
    font-weight: 600;
    font-size: 14px;
    color: #7d91aa !important;
    margin: 6px 0 0;
}

.login-options .social-icons {
    float: right;
    padding-top: 3px;
    list-style: none;
    margin: 0;
}

.login-options .social-icons li {
    float: left;
    margin-left: 6px;
}

.login-options .social-icons li a {
    border-radius: 10px !important;
}

/* ---- Footer strip inside form ---- */
.login .content .create-account {
    margin: 26px 0 0 0;
    padding: 18px 0 0 0;
    text-align: center;
    background: transparent;
    border-top: 1px solid #eef1f5;
    border-radius: 0;
}

.login .content .create-account p {
    margin: 0;
}

.login .content .create-account p a {
    font-weight: 600;
    font-size: 13px;
    color: #9aa7b5;
    letter-spacing: 0.4px;
    text-transform: none !important;
}

.login .content .create-account a {
    display: inline-block;
    margin: 0;
}

.login .content .alert {
    margin-bottom: 16px;
    border-radius: 10px;
    border: none;
    font-size: 13.5px;
}

.login .content .alert:last-child {
    margin-bottom: 16px;
}

/* ---- Language switch + copyright ---- */
.login-form-panel__foot {
    margin-top: 8px;
}

.login .language-switch-area {
    text-align: center;
    padding: 14px 0 0;
}

.login .language-switch-area .language-icon {
    opacity: 0.45;
    margin: 0 2px;
    transition: opacity 0.2s ease;
}

.login .language-switch-area a:hover .language-icon {
    opacity: 0.85;
}

.login .language-switch-area .language-icon-current {
    opacity: 1;
}

.login .copyright {
    text-align: center;
    margin: 24px auto 0;
    padding: 6px;
    color: rgba(230, 240, 245, 0.55);
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
    .login-card {
        flex-direction: column;
        max-width: 460px;
        min-height: 0;
    }

    .login-hero,
    .login-form-panel {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .login-hero {
        padding: 34px 34px 30px;
    }

    .login-hero__logo {
        margin-bottom: 22px;
    }

    .login-hero__features li:nth-child(n+3) {
        display: none;
    }

    .login-hero__footnote {
        display: none;
    }

    .login-form-panel {
        padding: 36px 34px 26px;
    }
}

@media (max-width: 480px) {
    .login-stage {
        padding: 20px 12px;
    }

    .login-hero {
        padding: 28px 24px 24px;
    }

    .login-hero__title {
        font-size: 22px;
    }

    .login-hero__features {
        display: none;
    }

    .login-form-panel {
        padding: 30px 24px 22px;
    }

    .login .content h3,
    .login .content .form-title {
        font-size: 24px;
    }

    .login .content .form-actions {
        justify-content: flex-start;
    }
}
