﻿:root {
    --green-dark: #087538;
    --green-main: #178f43;
    --green-light: #73cf2f;
    --text-dark: #1d3028;
    --text-muted: #6f7d78;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Verdana, sans-serif;
}

body {
    background: url("../Images/Login-bg-nature.png") center center / cover no-repeat fixed;
}

.login-page {
    min-height: 100vh;
    padding: 12px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 2px;
}

.welcome-text {
    color: var(--green-main);
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0;
}

.login-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.05;
}

.title-divider {
    width: 105px;
    height: 1px;
    background: #dbe5df;
    margin: 7px auto 0;
    position: relative;
}

    .title-divider span {
        position: relative;
        top: -12px;
        background: rgba(255, 255, 255, 0.85);
        padding: 0 10px;
        color: var(--green-main);
        font-size: 13px;
    }

.login-card {
    width: 1080px;
    max-width: 74%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.20);
}

.login-left {
    width: 50%;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1ba14c 0%, #006b37 100%);
    padding: 25px 30px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-left::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.12), transparent 30%), radial-gradient(circle at 22% 82%, rgba(255, 255, 255, 0.10), transparent 34%);
        pointer-events: none;
    }

.login-left-text {
    position: relative;
    z-index: 3;
    max-width: 340px;
    color: #ffffff;
}

    .login-left-text h2 {
        margin: 0 0 8px;
        color: #ffffff;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.15;
    }

    .login-left-text p {
        margin: 0;
        max-width: 300px;
        color: rgba(255, 255, 255, 0.96);
        font-size: 12px;
        line-height: 1.4;
    }

.crop-image {
    position: relative;
    z-index: 2;
    width: 60%;
    max-width: 260px;
    align-self: center;
    margin-top: 10px;
    object-fit: contain;
}

.login-right {
    width: 50%;
    min-height: auto;
    background: #ffffff;
    padding: 25px 35px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        color: var(--text-dark);
        font-size: 13px;
        font-weight: 700;
    }

.input-box {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green-main);
    font-size: 15px;
    z-index: 2;
}

.eye-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #87928e;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}

    .eye-icon:focus {
        outline: none;
    }

.form-control {
    width: 100%;
    height: 44px;
    border-radius: 11px !important;
    border: 1px solid #dce6e1 !important;
    padding: 0 48px 0 55px !important;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05) !important;
}

    .form-control::placeholder {
        color: #9ea9a5;
    }

    .form-control:focus {
        border-color: var(--green-main) !important;
        box-shadow: 0 0 0 4px rgba(23, 143, 67, 0.13) !important;
        outline: none !important;
    }

.validator {
    position: absolute;
    right: 6px;
    top: 0;
    color: #dc3545;
}

.login-options {
    margin: 2px 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember {
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

    .remember input {
        width: 16px;
        height: 16px;
        accent-color: var(--green-main);
    }

.forgot-link {
    color: var(--green-main);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

    .forgot-link:hover {
        color: var(--green-dark);
        text-decoration: none;
    }

.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--green-light), var(--green-dark));
    box-shadow: 0 10px 24px rgba(8, 117, 56, 0.32);
    cursor: pointer;
    transition: 0.25s ease;
}

    .login-btn:hover,
    .login-btn:focus {
        color: #ffffff;
        background: linear-gradient(90deg, #82db38, #006a34);
        transform: translateY(-1px);
        outline: none;
    }

.login-copyright {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e5ece8;
    text-align: center;
    color: #7a8883;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25px;
    line-height: 1.4;
}

    .login-copyright span:first-child {
        color: #5d6c67;
        font-weight: 700;
    }

.copyright-separator {
    margin: 0 10px;
    color: #c4cec9;
}

.contact-admin {
    margin-top: 8px;
    color: #263832;
    font-size: 13px;
    text-align: center;
}

    .contact-admin a span {
        color: var(--green-main);
        font-weight: 800;
    }

    .contact-admin a:hover {
        text-decoration: none;
    }

.modal-content {
    border-radius: 14px;
}

@media (max-width: 991px) {
    .login-card {
        width: 720px;
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
        min-height: auto;
    }

    .login-left {
        padding: 24px 28px 18px;
    }

    .crop-image {
        width: 55%;
        max-width: 250px;
        margin-top: 10px;
    }

    .login-right {
        padding: 28px 28px;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 12px 10px;
    }

    .login-logo {
        width: 40px;
        height: 40px;
    }

    .login-title {
        font-size: 25px;
    }

    .login-left {
        padding: 22px 20px 16px;
    }

    .login-left-text h2 {
        font-size: 21px;
    }

    .login-left-text p {
        font-size: 12px;
    }

    .crop-image {
        width: 75%;
        max-width: 240px;
        margin-top: 12px;
    }

    .login-right {
        padding: 24px 18px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-copyright {
        font-size: 11px;
        padding-top: 10px;
    }

    .copyright-separator {
        margin: 0 5px;
    }
}
