/* ===========================================================
   SIDEBAR
=========================================================== */
.login-sidebar {
    height: 100dvh;
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    box-shadow: 0 5px 8px rgb(0 0 0 / 31%);
}

.login-sidebar-corpo {
    max-width: 420px;
    width: 100%;
}

/* ===========================================================
   LOGO
=========================================================== */
.login-logo {
    display: block;
    margin: 0 auto 15px;
    max-height: 200px;
    max-width: 400px;
}

/* ===========================================================
   TÍTULOS
=========================================================== */
.login-title {
    margin-bottom: 0;
    font-size: 20px;
    text-align: center;
}

.login-title-sub {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.signup-subtitle {
    color: #555;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/* ===========================================================
   INPUTS
=========================================================== */
.login-input,
.sidebar-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sidebar-input {
    border-color: #ddd;
    border-radius: 8px;
    margin-bottom: 0;
}

.login-input:focus,
.sidebar-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
    outline: none;
}

.sidebar-group {
    margin-bottom: 15px;
}

#login-password {
    margin-bottom: 0;
}

/* ===========================================================
   BOTÕES
=========================================================== */
.login-btn,
.signup-btn,
.sidebar-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
}

.login-btn {
    margin-top: 15px;
}

.sidebar-btn {
    border-radius: 8px;
    font-size: 15px;
}

.login-btn:hover,
.signup-btn:hover,
.sidebar-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent);
}

.login-btn:active,
.signup-btn:active,
.sidebar-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.option-btn {
    margin-bottom: 10px;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ===========================================================
   SENHA (ícone)
=========================================================== */
.password-container {
    position: relative;
    margin-bottom: 5px;
}

#mostrarSenha {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
    color: #aaa;
    padding: 4px;
}

#mostrarSenha:hover {
    color: var(--primary);
}

/* ===========================================================
   LINKS E AÇÕES
=========================================================== */
.signup-toggle,
.back-login {
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary);
    font-size: 14px;
    transition: color 0.2s;
}

.signup-toggle {
    margin-top: 10px;
}

#login-esqueci-senha {
    justify-content: center;
}

#login-inscricao {
    text-align: center;
}

.back-login:hover,
.signup-toggle:hover {
    text-decoration: underline;
}

/* ===========================================================
   DIVISOR
=========================================================== */
.divider {
    margin: 15px 0;
    text-align: center;
    color: #777;
}

.divider span {
    background: #fff;
    padding: 0 8px;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

/* ===========================================================
   SSO LOGIN
=========================================================== */
.sso-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sso-icon {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.sso-icon:hover {
    background: #ececec;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================================================
   CAIXA DE CADASTRO / RECUPERAÇÃO
=========================================================== */
.signup-box,
.login-recovery {
    display: none;
    text-align: center;
}

.sidebar-back {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    color: #555;
}

.sidebar-back a {
    color: var(--primary);
    font-weight: 600;
}

/* ===========================================================
   RODAPÉ
=========================================================== */
.footer-login {
    margin: auto;
    margin-top: 15px;
    text-align: center;
    width: 100%;
}

.footer-login h4 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #777;
    letter-spacing: 0.5px;
}

.social {
    margin-bottom: 10px;
}

.social a {
    margin: 0 10px;
    font-size: 20px;
    color: #aaa;
    transition: color 0.2s;
}

.social a:hover {
    color: var(--primary);
}

/* ===========================================================
   RESPONSIVIDADE
=========================================================== */
@media screen and (max-width: 1100px) {
    .login-sidebar {
        max-width: 100%;
    }

    .login-logo {
        width: auto;
        margin: 0 auto 10px;
    }

    .login-input,
    .sidebar-input {
        margin-bottom: 5px;
    }
}

@media screen and (max-height: 800px) {
    .login-logo {
        max-width: 80%;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .divider {
        margin: 10px 0;
    }
}

@media screen and (max-height: 650px) {
    .login_acesse_conta {
        display: none;
    }

    .login-logo {
        width: auto !important;
    }

    .divider {
        margin: 5px 0;
    }
}

@media screen and (max-height: 600px) {
    .login-logo {
        width: auto;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .footer-login {
        display: none;
    }
}
