@import url("/css/tokens.css");

/* =========================
   PÁGINA DE LOGIN
========================= */
.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    position: relative;
    z-index: var(--z-content);
    width: 100%;
    max-width: 420px;
    padding: 0 var(--space-2xl);
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-subtitle-content);
}

.login-page .login-header .brand {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-primary-action) !important;
    display: block;
    margin-bottom: var(--space-title-subtitle-less);
}

.login-page .login-header .subtitle {
    font-size: 0.95rem;
    color: var(--eden-body-text) !important;
    font-weight: 500;
}

/* Formulário */
.login-form {
    background: transparent;
    border-radius: 0;
    padding: 0 var(--space-4xl);
}

.login-form .form-group {
    margin-bottom: var(--space-xl);
}

.login-form .form-group:last-of-type {
    margin-bottom: 0;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--eden-body-text);
    margin-bottom: var(--space-sm);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    border-radius: 30px;
    border: 1px solid var(--color-primary-action);
    background: var(--white);
    outline: none;
    color: var(--eden-body-text);
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: var(--color-highlight-green);
}

.login-form input:not(:placeholder-shown) {
    background: var(--color-forest-soft-text);
    color: var(--eden-body-text);
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
    border-color: var(--color-highlight-green);
    -webkit-text-fill-color: var(--eden-body-text);
    -webkit-box-shadow: 0 0 0 1000px var(--color-forest-soft-text) inset;
    box-shadow: 0 0 0 1000px var(--color-forest-soft-text) inset;
}

.login-btn {
    width: 100%;
    padding: var(--space-lg);
    border: none;
    border-radius: 30px;
    background: var(--color-primary-action);
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-subtitle-content);
}

.login-btn:focus {
}

.login-btn:hover {
    background: var(--color-primary-action);
    transform: translateY(-2px);
}

/* Mensagem de erro */
.login-erro {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
    padding: var(--space-md) var(--space-lg);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Link de volta */
.login-footer {
    text-align: center;
    margin-top: var(--space-md);
}

.login-footer a {
    font-size: 0.85rem;
    color: var(--color-primary-action);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: var(--color-primary-action);
}

/* =========================
   FUNDO DECORATIVO
========================= */
.home-bg-art,
.bg-art {
    position: absolute;
    pointer-events: none;
    z-index: var(--z-base);
}

.home-bg-circle,
.bg-circle {
    position: absolute;
    border-radius: 50%;
}

.home-bg-art-login-top,
.bg-art-top {
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    overflow: visible;
}

.home-bg-art-left-mid,
.bg-art-bottom {
    bottom: -170px;
    left: -240px;
    width: 560px;
    height: 560px;
    overflow: visible;
}

.home-login-top-back,
.top-dark {
    width: 340px;
    height: 340px;
    background: var(--eden-green-18);
    right: 0;
    top: 0;
}

.home-login-top-front,
.top-medium {
    width: 230px;
    height: 230px;
    background: var(--eden-leaf-28);
    right: 90px;
    top: 100px;
}

.home-login-top-detail,
.top-light {
    width: 120px;
    height: 120px;
    background: var(--eden-red-14);
    right: 250px;
    top: 60px;
}

.home-left-mid-back,
.bottom-back {
    width: 460px;
    height: 460px;
    background: var(--eden-sand-90);
    left: 0;
    top: 0;
}

.home-left-mid-front,
.bottom-middle {
    width: 320px;
    height: 320px;
    background: var(--eden-leaf-18);
    left: 120px;
    top: 150px;
}

.home-left-mid-detail,
.bottom-front {
    width: 140px;
    height: 140px;
    background: var(--eden-red-14);
    left: 330px;
    top: 90px;
}

/* =========================
   ACESSO ADMIN
========================= */
.admin-access {
    margin-top: var(--space-2xl);
}

.admin-divider {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.admin-divider::before,
.admin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.admin-divider span {
    font-size: 0.8rem;
    color: var(--color-muted-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-admin-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 0 var(--space-2xl);
    border-radius: 999px;
    border: 1px solid var(--color-primary-action);
    background: var(--white);
    color: var(--color-primary-action);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-admin-login svg {
    display: none;
}

.btn-admin-login:hover {
    background: var(--white);
    color: var(--color-primary-action);
    transform: translateY(-2px);
}

.btn-admin-login:focus,
.btn-admin-login:active {
}

.link-voltar {
    font-size: 0.85rem;
    color: var(--color-primary-action);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-voltar:hover {
    color: var(--color-primary-action);
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 768px) {
    .login-form {
        padding: var(--space-md) var(--space-2xl) 0;
    }

    .login-header .brand {
        font-size: 2.4rem;
    }
}
