﻿:root {
    --fdl-green: #78b642;
    --fdl-green-dark: #5f9832;
    --fdl-green-soft: #9dd36c;
    --fdl-text: #111827;
    --fdl-muted: #6b7280;
    --fdl-border: #d1d5db;
    --fdl-white: rgba(255, 255, 255, 0.96);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.fdl-login-body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: var(--bs-body-font-family);
    background: url('/images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdl-login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28));
    z-index: 1;
}

.fdl-login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: clamp(1rem, 3vw, 2.25rem);
}

.fdl-login-card {
    width: 100%;
    max-width: 410px;
    background: var(--fdl-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.25rem;
    padding: clamp(1.35rem, 2.4vw, 1.85rem);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    backdrop-filter: blur(10px);
}

.fdl-login-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid rgba(120, 182, 66, 0.15);
    box-shadow: 0 14px 28px rgba(120, 182, 66, 0.12);
}

.fdl-login-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.fdl-login-title {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 800;
    color: var(--fdl-text);
    margin-bottom: 0.35rem;
}

.fdl-login-subtitle {
    color: var(--fdl-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.fdl-login-card .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
}

.fdl-login-card .form-control {
    min-height: 3.15rem;
    border-radius: 0.95rem;
    border: 1px solid var(--fdl-border);
    padding-inline: 1rem;
    box-shadow: none;
    font-size: 1rem;
}

    .fdl-login-card .form-control:focus {
        border-color: var(--fdl-green-soft);
        box-shadow: 0 0 0 0.2rem rgba(120, 182, 66, 0.18);
    }

.fdl-login-card .form-check-input:checked {
    background-color: var(--fdl-green);
    border-color: var(--fdl-green);
}

.fdl-login-btn {
    background: linear-gradient(135deg, var(--fdl-green), var(--fdl-green-dark));
    border: none;
    color: #fff;
    border-radius: 0.95rem;
    min-height: 3.2rem;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(95, 152, 50, 0.22);
    transition: all 0.2s ease;
}

    .fdl-login-btn:hover,
    .fdl-login-btn:focus {
        color: #fff;
        background: linear-gradient(135deg, #6cab45, #4f8933);
        transform: translateY(-1px);
    }

.fdl-login-link {
    color: var(--fdl-green-dark);
    text-decoration: none;
    font-weight: 600;
}

    .fdl-login-link:hover {
        text-decoration: underline;
    }

.alert-danger {
    border-radius: 0.9rem;
    border: none;
}

/* Desktop grande */
@media (min-width: 1200px) {
    .fdl-login-container {
        justify-content: flex-end;
        padding-right: clamp(2rem, 5vw, 4rem);
        padding-left: clamp(2rem, 4vw, 3rem);
    }

    .fdl-login-card {
        margin-right: clamp(0rem, 2vw, 1.5rem);
    }
}

/* Laptop / desktop mediano */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .fdl-login-container {
        justify-content: flex-end;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .fdl-login-card {
        max-width: 400px;
    }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 991.98px) {
    .fdl-login-body {
        background-position: center center;
    }

    .fdl-login-overlay {
        background: linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.28));
    }

    .fdl-login-container {
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    .fdl-login-card {
        max-width: 560px;
        padding: 2rem;
        border-radius: 1.4rem;
        background: rgba(255, 255, 255, 0.94);
    }

    .fdl-login-logo-wrap {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

    .fdl-login-logo {
        width: 58px;
        height: 58px;
    }

    .fdl-login-title {
        font-size: 1.55rem;
    }

    .fdl-login-subtitle {
        font-size: 0.95rem;
    }

    .fdl-login-card .form-control {
        min-height: 3.2rem;
        font-size: 1rem;
    }

    .fdl-login-btn {
        min-height: 3.2rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .fdl-login-container {
        justify-content: center;
        padding: 1rem;
    }

    .fdl-login-card {
        max-width: 100%;
        padding: 1.25rem;
        border-radius: 1.2rem;
        background: rgba(255, 255, 255, 0.95);
    }

    .fdl-login-logo-wrap {
        width: 78px;
        height: 78px;
        border-radius: 20px;
    }

    .fdl-login-logo {
        width: 52px;
        height: 52px;
    }

    .fdl-login-title {
        font-size: 1.3rem;
    }

    .fdl-login-subtitle {
        font-size: 0.9rem;
    }

    .fdl-login-card .form-control {
        min-height: 3rem;
    }

    .fdl-login-btn {
        min-height: 3rem;
    }
}
