/* Login — painel de autenticação (mobile-first) */

body.layout-auth {
    background: var(--bg-light, #f8f9fa);
}

body.layout-auth #containerContent {
    margin-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

.login-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 118, 179, 0.85), rgba(0, 71, 108, 0.9)),
                url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    padding: 16px 0 24px;
}

.login-wrapper > .container {
    width: 100%;
}

.login-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 28px 20px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
}

.login-header {
    margin-bottom: 24px;
}

.login-header .brand {
    font-weight: 900;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    color: #0076b3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-header .brand span {
    color: #00adef;
}

.login-header p {
    color: var(--text-light, #666);
    font-size: 0.9rem;
    margin: 0;
}

.login-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.login-input.form-control {
    padding: 0.85rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    background: #fdfdfd;
    min-height: 48px;
}

.login-input.form-control:focus {
    border-color: #00adef;
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(0, 173, 239, 0.15);
}

.password-container {
    position: relative;
}

.password-container .login-input {
    padding-right: 3rem;
}

.btn-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: #666;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-eye:hover {
    color: #0076b3;
}

.btn-login {
    padding: 0.9rem 1rem;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 48px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: #ffc400;
    color: #000;
}

.btn-login:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

.alert-box {
    margin-top: 4px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.alert-danger {
    background: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffcccc;
    display: block;
}

.login-help {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-light, #666);
}

.login-help p {
    margin: 0;
    line-height: 1.5;
}

.login-help a {
    color: #00adef;
    text-decoration: none;
    font-weight: 600;
}

.login-help a:hover {
    text-decoration: underline;
}

@media (min-width: 576px) {
    .login-box {
        padding: 40px 32px;
        border-radius: 20px;
    }
}

@media (min-width: 768px) {
    .login-wrapper {
        padding: 24px 0;
    }

    .login-box {
        padding: 48px 40px;
    }
}
