:root {
    --brand-green: #1b8a3e;
    --brand-green-dark: #14662e;
    --brand-gold: #f4b400;
    --brand-orange: #f47b20;
    --ink: #16301f;
    --muted: #5d7464;
    --line: #dce8df;
    --panel: #ffffff;
    --page: #07140c;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.user-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--ink);
}

body.user-login-page .login-shell {
    min-height: 100vh;
    display: flex;
}

.login-brand {
    position: relative;
    flex: 1.15;
    overflow: hidden;
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(145deg, rgba(8, 28, 16, 0.88), rgba(12, 42, 24, 0.72)),
        url("../assets/img/bg/Direct.jpg") center/cover no-repeat;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.28), transparent 68%);
}

.brand-kicker,
.brand-copy,
.brand-points,
.brand-foot {
    position: relative;
    z-index: 1;
}

.brand-kicker {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-copy h1 {
    margin: 28px 0 14px;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    max-width: 480px;
}

.brand-copy h1 span {
    color: var(--brand-gold);
}

.brand-copy p {
    max-width: 460px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.brand-points {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.brand-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}

.brand-points i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 138, 62, 0.9);
    color: #fff;
}

.brand-foot {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.login-panel {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    background:
        linear-gradient(180deg, #f7fbf7 0%, #eef6f0 100%);
}

.login-card {
    width: 100%;
    max-width: 390px;
    background: var(--panel);
    border-radius: 24px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(16, 52, 28, 0.12);
    border: 1px solid rgba(27, 138, 62, 0.08);
}

.login-logo-wrap {
    text-align: center;
    margin-bottom: 8px;
}

.login-logo-wrap img,
.login-card .login-logo img,
#Image1 {
    max-width: 150px;
    height: auto;
}

.company-name {
    display: block;
    text-align: center;
    color: #6f8677;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 4px 0 16px;
}

.login-heading {
    text-align: center;
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}

.login-sub {
    text-align: center;
    color: var(--muted);
    margin: 0 0 24px;
    font-size: 14px;
}

.field {
    position: relative;
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.field .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 10px 42px 10px 14px;
    box-shadow: none;
    font-size: 14px;
}

.field .form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(27, 138, 62, 0.12);
}

.field .field-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: #8aa392;
}

input.login-btn,
.login-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: #1b8a3e !important;
    background-image: linear-gradient(135deg, #22a34d, #167a36) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 6px;
    -webkit-appearance: none;
    appearance: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input.login-btn:hover,
input.login-btn:focus,
.login-btn:hover,
.login-btn:focus {
    color: #fff !important;
    background: #159143 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(27, 138, 62, 0.28);
}

.login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 13px;
}

.login-links a,
.login-links span {
    color: var(--brand-green-dark);
    cursor: pointer;
    font-weight: 600;
}

.login-links a:hover,
.login-links span:hover {
    color: var(--brand-orange);
    text-decoration: none;
}

.home-link {
    display: block;
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}

.home-link:hover {
    color: var(--brand-green);
    text-decoration: none;
}

.modal.forgot-modal {
    text-align: center;
    padding: 0 !important;
}

.modal.forgot-modal.in {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.forgot-modal .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    width: 92%;
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.forgot-modal .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(7, 20, 12, 0.28);
}

.forgot-modal .modal-header {
    border: 0;
    background: linear-gradient(135deg, #12361f, #1b8a3e);
    color: #fff;
    padding: 22px 24px 18px;
    text-align: center;
}

.forgot-modal .forgot-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    font-size: 22px;
}

.forgot-modal .modal-title {
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 6px;
}

.forgot-modal .forgot-help {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 400;
}

.forgot-modal .modal-body {
    padding: 24px 26px 8px;
}

.forgot-modal .form-group {
    margin-bottom: 0;
}

.forgot-modal .form-group label,
.forgot-modal .field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.forgot-modal .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: none;
}

.forgot-modal .form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(27, 138, 62, 0.12);
}

.forgot-modal .modal-footer {
    border: 0;
    padding: 18px 26px 24px;
    text-align: center;
}

.forgot-modal .btn-send,
.forgot-modal .btn-close-modal {
    min-width: 120px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    padding: 0 18px;
}

.forgot-modal .btn-send {
    background: #1b8a3e !important;
    color: #fff !important;
    margin-right: 8px;
}

.forgot-modal .btn-close-modal {
    background: #eef3ef;
    color: #334;
}

.forgot-modal .alert {
    margin: 0 26px 20px;
    border-radius: 12px;
}

@media (max-width: 991px) {
    body.user-login-page .login-shell {
        flex-direction: column;
    }

    .login-brand {
        min-height: auto;
        padding: 22px 20px 18px;
        justify-content: flex-start;
    }

    .brand-copy h1 {
        font-size: 28px;
        margin: 14px 0 8px;
    }

    .brand-copy p,
    .brand-points,
    .brand-foot {
        display: none;
    }

    .login-panel {
        flex: 1 1 auto;
        padding: 16px 16px 28px;
        align-items: flex-start;
    }

    .login-logo-wrap img,
    #Image1 {
        max-width: 170px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .login-links {
        flex-direction: column;
        align-items: flex-start;
    }
}
