@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

#login-shell {
    position: relative;
    min-height: 100vh;
    padding: 48px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(12, 36, 24, 0.86) 0%, rgba(22, 75, 39, 0.5) 42%, rgba(255, 255, 255, 0.34) 100%),
        linear-gradient(180deg, rgba(255, 248, 225, 0.2) 0%, rgba(67, 108, 38, 0.18) 100%),
        url('https://demo.devcraft.cl/assets/images/home-agricola-duraznos.png') center / cover no-repeat;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

#login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.62;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 14% 18%, rgba(255, 205, 80, 0.4), transparent 28%),
        linear-gradient(90deg, rgba(5, 22, 16, 0.64) 0%, rgba(5, 22, 16, 0.18) 54%, rgba(5, 22, 16, 0.06) 100%);
    background-size: 48px 48px, 48px 48px, auto, auto;
}

#login-shell::after {
    display: none;
}

.login-scene {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.78fr);
    gap: 48px;
    align-items: center;
}

.login-copy {
    color: #ffffff;
    padding: 20px 0;
    animation: login-lift 0.55s ease;
    text-shadow: 0 3px 18px rgba(2, 16, 10, 0.42);
}

.login-copy-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    background: rgba(14, 56, 31, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #d9ff8f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.login-copy h2 {
    margin: 26px 0 16px;
    max-width: 520px;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 48px;
    line-height: 1.14;
    letter-spacing: 0;
    color: #ffffff;
}

.login-copy p {
    max-width: 480px;
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.login-card {
    justify-self: end;
    width: 100%;
    max-width: 440px;
    padding: 28px;
    border-radius: 10px;
    border: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(5, 38, 20, 0.35);
    animation: login-lift 0.65s ease;
}

.login-brand {
    margin: -28px -28px 0;
}

.login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 154px;
    margin: 0;
    padding: 0 0 20px;
    border-radius: 10px 10px 0 0;
    border: 0;
    border-bottom: 1px solid rgba(91, 205, 191, 0.28);
    overflow: hidden;
    background:
        linear-gradient(145deg, #0c1628 0%, #12263a 58%, #113f3b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 28px rgba(19, 72, 56, 0.16);
}

.login-logo {
    width: 78%;
    max-width: 380px;
    height: auto;
    display: block;
    transform: translateX(8px);
}

.login-brand-content {
    position: relative;
    margin-top: -30px;
    padding: 32px 28px 0;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
}

.login-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #2f7d32;
}

.login-card h1 {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #15351f;
}

.login-description {
    margin: 12px 0 0;
    color: #566575;
    font-size: 15px;
    line-height: 1.65;
}

.login-form {
    margin-top: 28px;
}

.login-field {
    display: block;
    margin-bottom: 18px;
}

.login-field span {
    display: block;
    margin-bottom: 8px;
    color: #24352b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.login-input,
.login-password-toggle,
.login-submit {
    font-family: inherit;
}

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #cbd9c5;
    background: #ffffff;
    color: #17341f;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-input::placeholder {
    color: #8b97ac;
}

.login-input:focus {
    outline: none;
    border-color: #5fa52f;
    box-shadow: 0 0 0 3px rgba(107, 181, 45, 0.18);
}

.login-password-row {
    position: relative;
}

.login-input-password {
    padding-right: 58px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #60746a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus {
    outline: none;
    background: rgba(107, 181, 45, 0.1);
    color: #255c2e;
}

.login-submit {
    width: 100%;
    height: 54px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #6bb52d 0%, #2f8f46 56%, #1f6d56 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 16px 32px rgba(58, 135, 49, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-submit:hover:not(:disabled),
.login-submit:focus:not(:disabled) {
    outline: none;
    box-shadow: 0 18px 34px rgba(58, 135, 49, 0.42);
    transform: translateY(-1px);
}

.login-submit:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    box-shadow: none;
}

.login-messages {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.login-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.login-message i {
    margin-top: 2px;
}

.login-message-warning {
    background: #fff8e1;
    color: #795600;
}

.login-message-error {
    background: #fff1f2;
    color: #b4233a;
}

.login-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #637063;
    font-size: 13px;
    font-weight: 700;
}

@keyframes login-lift {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    #login-shell {
        padding: 32px 18px;
    }

    .login-scene {
        grid-template-columns: 1fr;
    }

    .login-copy {
        padding: 0;
    }

    .login-card {
        justify-self: stretch;
        max-width: none;
    }
}

@media (max-width: 640px) {
    #login-shell {
        padding: 20px 14px;
    }

    .login-copy h2 {
        font-size: 36px;
    }

    .login-copy p {
        font-size: 15px;
    }

    .login-card {
        padding: 22px 18px 18px;
        border-radius: 10px;
    }

    .login-brand-panel {
        min-height: 132px;
    }

    .login-brand {
        margin: -22px -18px 0;
    }

    .login-brand-content {
        margin-top: -26px;
        padding: 28px 18px 0;
        border-radius: 18px 18px 0 0;
    }

    .login-card h1 {
        font-size: 30px;
    }

}
