/**
 * Login moderno — Wetec Soluções Agro
 * Escopo: resources/views/auth/login.blade.php
 * Fundo: mesma imagem bg-auth.jpg do tema (.auth-fluid)
 */

.auth-login-page.auth-fluid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 100vh;
    padding: 2rem 3rem;
    background: url("/assets/images/bg-auth.jpg") center center / cover no-repeat fixed;
    position: relative;
}

.auth-login-page.auth-fluid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 28, 18, 0.15) 0%,
        rgba(8, 28, 18, 0.35) 45%,
        rgba(8, 28, 18, 0.55) 100%
    );
    pointer-events: none;
}

.auth-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
    padding: 1.35rem 2rem 2rem;
    border-radius: 24px;
    background: rgba(12, 38, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(129, 179, 55, 0.08) inset;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    animation: auth-login-enter 0.65s ease-out both;
}

@keyframes auth-login-enter {
    from {
        opacity: 0;
        transform: translateX(28px) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.auth-login-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
}

.auth-login-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    color: #fff;
}

.auth-login-title span {
    color: #b8e986;
}

.auth-login-subtitle {
    margin: 0 0 1.75rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

.auth-login-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.auth-login-field {
    position: relative;
    margin-bottom: 1.15rem;
}

.auth-login-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.auth-login-field-head .auth-login-label {
    margin-bottom: 0;
}

.auth-login-input-wrap {
    position: relative;
}

.auth-login-input-wrap i {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.auth-login-input {
    width: 100%;
    padding: 0.72rem 0.95rem 0.72rem 2.65rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-login-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.auth-login-input:focus {
    outline: none;
    border-color: rgba(184, 233, 134, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(129, 179, 55, 0.18);
}

.auth-login-link {
    font-size: 0.82rem;
    color: #b8e986;
    text-decoration: none;
    white-space: nowrap;
}

.auth-login-link:hover {
    color: #d4f5a8;
    text-decoration: underline;
}

.auth-login-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.auth-login-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #7cb342;
}

.auth-login-check label {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.auth-login-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
}

.auth-login-alert-danger {
    background: rgba(247, 71, 58, 0.18);
    border: 1px solid rgba(247, 71, 58, 0.35);
    color: #ffd6d2;
}

.auth-login-alert-success {
    background: rgba(81, 179, 85, 0.18);
    border: 1px solid rgba(129, 179, 55, 0.35);
    color: #dff5c8;
}

.auth-login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.78rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(104, 159, 56, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(104, 159, 56, 0.42);
    color: #fff;
}

.auth-login-submit:active {
    transform: translateY(1px);
}

.auth-login-support {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.15rem;
    font-size: 0.9rem;
    color: #b8e986;
    text-decoration: none;
}

.auth-login-support:hover {
    color: #d4f5a8;
}

.auth-login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
}

.auth-login-footer a {
    color: #fec20d;
    font-weight: 600;
    text-decoration: none;
}

.auth-login-footer a:hover {
    color: #ffe082;
    text-decoration: underline;
}

.auth-login-demo {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-login-demo p {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
}

.auth-login-demo .btn-success {
    background: linear-gradient(135deg, #8bc34a 0%, #689f38 100%);
    border: none;
}

.auth-login-demo .btn-dark {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-login-demo a {
    color: #b8e986;
}

@media (max-width: 991.98px) {
    .auth-login-page.auth-fluid {
        justify-content: center;
        align-items: center;
        padding: 1.25rem;
        background-attachment: scroll;
    }

    .auth-login-card {
        max-width: 100%;
        border-radius: 20px;
        animation-name: auth-login-enter-mobile;
    }

    @keyframes auth-login-enter-mobile {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 575.98px) {
    .auth-login-card {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .auth-login-logo {
        width: 190px;
    }

    .auth-login-title {
        font-size: 1.45rem;
    }
}
