/* assets/login.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --green-primary: #2c7744;
    --green-dark: #1d5a31;
    --green-light: #4fa36d;

    --bg-dark-1: #0f2027;
    --bg-dark-2: #203a43;

    --text-dark: #1e293b;
    --text-light: #64748b;

    --white: #ffffff;
}

html,
body {
    min-height: 100%;
}

body {

    font-family: 'Segoe UI', sans-serif;

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            -45deg,
            var(--bg-dark-1),
            var(--bg-dark-2),
            var(--green-primary),
            var(--bg-dark-1)
        );

    background-size: 400% 400%;

    animation: gradientBG 12s ease infinite;
}

html {
    height: 100%;
}

@keyframes gradientBG {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }

}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {

    background: rgba(255,255,255,0.12);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.18);

    border-radius: 28px;

    padding: 40px 28px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.25);
}

.logo-area {

    text-align: center;

    margin-bottom: 35px;
}

.logo-area img {

    width: 90px;
    height: 90px;

    object-fit: contain;

    margin-bottom: 15px;
}

.logo-area h1 {

    color: var(--white);

    font-size: 34px;

    margin-bottom: 6px;
}

.logo-area p {

    color: rgba(255,255,255,0.75);

    font-size: 15px;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {

    display: block;

    margin-bottom: 10px;

    color: rgba(255,255,255,0.9);

    font-size: 14px;

    font-weight: 600;
}

.input-group input {

    width: 100%;

    height: 58px;

    border: 1px solid rgba(255,255,255,0.18);

    background: rgba(255,255,255,0.12);

    border-radius: 16px;

    padding: 0 18px;

    color: var(--white);

    font-size: 16px;

    outline: none;

    transition: 0.2s;
}

.input-group input::placeholder {

    color: rgba(255,255,255,0.5);
}

.input-group input:focus {

    border-color: rgba(255,255,255,0.45);

    background: rgba(255,255,255,0.18);
}

.password-area {
    position: relative;
}

.password-area input {
    padding-right: 60px;
}

.toggle-password {

    position: absolute;

    top: 50%;
    right: 16px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: white;

    font-size: 18px;

    cursor: pointer;
}

.options-row {

    display: flex;
    align-items: center;

    margin-bottom: 28px;
}

.remember {

    display: flex;
    align-items: center;

    gap: 8px;

    color: rgba(255,255,255,0.8);

    font-size: 14px;
}

.login-button {

    width: 100%;

    height: 58px;

    border: none;

    border-radius: 16px;

    background: linear-gradient(
        135deg,
        var(--green-light),
        var(--green-primary)
    );

    color: white;

    font-size: 17px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.25s;
}

.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(44,119,68,0.35);
}

.login-button:active {

    transform: scale(0.99);
}

.login-button:disabled {

    opacity: 0.7;

    cursor: not-allowed;
}

.footer-text {

    margin-top: 28px;

    text-align: center;

    color: rgba(255,255,255,0.55);

    font-size: 13px;
}

@media (max-width: 480px) {

    body {
        padding: 16px;
    }

    .login-card {

        padding: 32px 22px;

        border-radius: 24px;
    }

    .logo-area h1 {
        font-size: 28px;
    }

}
