:root {
    --gcm-primary: #1f3b2d;
    --gcm-primary-dark: #14261d;
    --gcm-secondary: #c9a227;
    --gcm-bg: #edf2ef;
    --gcm-text: #26352d;
    --gcm-muted: #6c757d;
}

* {
    box-sizing: border-box;
}

body.login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(201, 162, 39, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(31, 59, 45, 0.18), transparent 30%),
        linear-gradient(135deg, #f7faf8 0%, #edf2ef 45%, #e3ebe6 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(31, 59, 45, 0.08);
    backdrop-filter: blur(12px);
}

.form-signin {
    width: 100%;
}

.login-logo-circle {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff, #eef4f0);
    border: 4px solid rgba(201, 162, 39, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(31, 59, 45, 0.15);
}

.login-logo-circle img {
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.login-logo h1 {
    color: var(--gcm-primary);
    letter-spacing: .02em;
}

.form-floating > .form-control {
    border-radius: .9rem;
    border-color: #d7dfda;
}

.form-floating > .form-control:focus {
    border-color: var(--gcm-primary);
    box-shadow: 0 0 0 .2rem rgba(31, 59, 45, 0.15);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3.1rem;
}

.btn-toggle-password {
    position: absolute;
    right: .7rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6c757d;
    z-index: 5;
    padding: .35rem;
    line-height: 1;
}

.btn-toggle-password:hover {
    color: var(--gcm-primary);
}

.btn-login {
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(135deg, var(--gcm-primary), var(--gcm-primary-dark));
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(31, 59, 45, 0.22);
    transition: all .15s ease;
}

.btn-login:hover,
.btn-login:focus {
    background: linear-gradient(135deg, #2d5540, var(--gcm-primary-dark));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(31, 59, 45, 0.26);
}

.btn-login:disabled {
    opacity: .8;
    transform: none;
    box-shadow: none;
}

.link-recuperar {
    color: var(--gcm-primary);
    text-decoration: none;
    font-weight: 600;
}

.link-recuperar:hover {
    color: var(--gcm-primary-dark);
    text-decoration: underline;
}

.alert {
    border-radius: .9rem;
}

.login-footer {
    border-top: 1px solid #edf0ee;
    padding-top: .85rem;
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        border-radius: 1.2rem;
    }

    .login-logo-circle {
        width: 96px;
        height: 96px;
    }

    .login-logo-circle img {
        width: 68px;
        height: 68px;
    }
}