/* ============================================
   AFTIAS Login — modern professional screen
   المنظمة العربية للتنمية الزراعية
   ============================================ */

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: Cairo, "Segoe UI", Tahoma, sans-serif;
    background: #14261a;
    color: #1f2933;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, 46%) 1fr;
}

.login-brand {
    background:
        linear-gradient(160deg, rgba(20, 38, 26, 0.88) 0%, rgba(30, 77, 42, 0.82) 55%, rgba(45, 111, 63, 0.78) 100%),
        url("../img/bg.jpg") center / cover no-repeat;
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand:after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -90px;
    background: rgba(244, 184, 27, 0.16);
    border-radius: 50%;
}

.login-brand-mark {
    width: 78px;
    height: 78px;
    background: #fff;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.login-brand-mark img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.login-kicker {
    margin: 0 0 8px;
    letter-spacing: 0.4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    z-index: 1;
}

.login-brand h1 {
    margin: 0 0 16px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.login-lead {
    margin: 0 0 28px;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.86);
    position: relative;
    z-index: 1;
}

.login-points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    position: relative;
    z-index: 1;
}

.login-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.login-points i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(244, 184, 27, 0.18);
    color: #f4b81b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-site-link {
    color: #f4b81b;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.login-site-link:hover {
    color: #fff;
    text-decoration: none;
}

.login-panel {
    background: #eef2ef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #e4e8e5;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(20, 38, 26, 0.1);
    padding: 36px 32px 28px;
}

.login-card-head {
    margin-bottom: 26px;
}

.login-badge {
    display: inline-block;
    background: #eef6f0;
    color: #1e4d2a;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.login-card-head h2 {
    margin: 0 0 8px;
    color: #1e4d2a;
    font-size: 26px;
    font-weight: 800;
}

.login-card-head p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e4d2a;
    margin-bottom: 8px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: #2d6f3f;
    font-size: 14px;
}

.login-body .login-input.form-control,
.login-body .login-input {
    height: 48px;
    min-height: 48px;
    width: 100%;
    border: 1px solid #d5ddd7;
    border-radius: 12px;
    background: #fbfcfb;
    padding: 10px 42px 10px 14px;
    font-size: 15px;
    color: #1f2933;
    box-shadow: none;
}

.login-body .login-input:focus {
    outline: none;
    border-color: #2d6f3f;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 111, 63, 0.15);
}

.login-error {
    display: block;
    margin-top: 6px;
    color: #c0392b !important;
    font-size: 12px;
    font-weight: 700;
}

.login-submit {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e4d2a, #2d6f3f);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 13px 18px;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(45, 111, 63, 0.22);
}

.login-submit:hover {
    filter: brightness(1.06);
}

.login-alert {
    display: block;
    margin-top: 14px;
    color: #c0392b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    min-height: 1.2em;
}

.login-copy {
    margin: 22px 0 0;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 32px 24px 28px;
        min-height: auto;
    }

    .login-brand h1 {
        font-size: 26px;
    }

    .login-points {
        display: none;
    }

    .login-panel {
        padding: 24px 16px 32px;
    }

    .login-card {
        padding: 28px 20px 22px;
    }
}
