/**
 * EBD 360 CMS — Login & Cadastro Customizado
 *
 * CSS completo para a tela de login proprietária com formulário de cadastro.
 * Layout split-screen elegante com seleção de perfis.
 *
 * @package EBD360_CMS
 * @since   2.0.0
 */

:root {
    --ebd-primary: #1A2634;
    --ebd-secondary: #2C3E50;
    --ebd-accent: #C5A059;
    --ebd-accent-hover: #d4b574;
    --ebd-text: #1E293B;
    --ebd-text-light: #64748B;
    --ebd-bg: #FFFFFF;
    --ebd-border: #E2E8F0;
    --ebd-border-strong: #CBD5E1;
    --ebd-muted-surface: #F8FAFC;
    --ebd-transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --ebd-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --ebd-shadow-focus: 0 0 0 4px rgba(197,160,89,0.14);
    --ebd-success: #10B981;
    --ebd-success-bg: #ECFDF5;
    --ebd-success-border: #A7F3D0;
    --ebd-error: #EF4444;
    --ebd-error-bg: #FEF2F2;
    --ebd-error-border: #FEE2E2;
}

body.ebd360-login {
    background:
        linear-gradient(135deg, rgba(248,250,252,0.95) 0%, rgba(255,255,255,1) 42%, rgba(247,243,236,0.72) 100%) !important;
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ebd-text);
}

/* ==========================================================================
   PAINEL ESQUERDO (Imagem Institucional)
   ========================================================================== */

.ebd360-login-panel {
    width: 55%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    overflow: hidden;
    color: #FFFFFF;
}

.ebd360-login-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.ebd360-login-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,38,52,0.92) 0%, rgba(44,62,80,0.85) 100%);
    z-index: 2;
}

.ebd360-login-panel-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
    margin: 0 auto;
}

.ebd360-login-brand {
    margin-bottom: 60px;
}

.ebd360-login-brand-icon {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    color: var(--ebd-accent);
    margin-bottom: 24px;
}

.ebd360-login-brand h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.ebd360-login-brand h1 span {
    color: var(--ebd-accent);
}

.ebd360-login-slogan {
    font-size: 18px;
    color: #CBD5E1;
    margin: 0;
    font-weight: 400;
}

.ebd360-login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ebd360-login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #F1F5F9;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--ebd-transition);
}

.ebd360-login-feature:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.ebd360-login-feature .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--ebd-accent);
}

/* ==========================================================================
   PAINEL DIREITO (Formulário WordPress Modificado)
   ========================================================================== */

#login {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0 !important;
    max-width: none;
    position: relative;
    background: rgba(255,255,255,0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: ebd360-login-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#login h1 { display: none; } /* Oculta logo WP padrão */

.ebd360-login-welcome {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 32px;
    text-align: center;
    animation: ebd360-rise-in 0.52s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ebd360-login-welcome::before {
    content: "\f330";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(197,160,89,0.16), rgba(26,38,52,0.08));
    border: 1px solid rgba(197,160,89,0.28);
    color: var(--ebd-accent);
    font-family: dashicons;
    font-size: 27px;
    line-height: 1;
    box-shadow: 0 12px 26px rgba(197,160,89,0.16);
}

.ebd360-login-welcome h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--ebd-text);
    margin: 0 0 8px;
    letter-spacing: 0;
}

.ebd360-login-welcome p {
    font-size: 15px;
    color: var(--ebd-text-light);
    margin: 0;
}

#login form {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(226,232,240,0.82);
    box-shadow: var(--ebd-shadow-soft);
    padding: 26px;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-sizing: border-box;
    animation: ebd360-rise-in 0.52s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Campos de formulário */
#login form p { margin-bottom: 20px; }

#login form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ebd-text);
    margin-bottom: 8px;
    display: block;
}

#login form input[type="text"],
#login form input[type="password"] {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--ebd-muted-surface);
    border: 1px solid var(--ebd-border);
    border-radius: 12px;
    color: var(--ebd-text);
    box-shadow: none;
    transition: var(--ebd-transition);
}

#login form .ebd360-login-field {
    display: block;
    position: relative;
    width: 100%;
    min-height: 52px;
}

#login form .ebd360-login-field .ebd360-login-field-icon {
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 24px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 20px;
    line-height: 1;
    transition: var(--ebd-transition);
    pointer-events: none;
}

#login form .ebd360-login-field input[type="text"],
#login form .ebd360-login-field input[type="password"] {
    padding-left: 46px;
}

#login form .ebd360-login-field:focus-within .ebd360-login-field-icon {
    color: var(--ebd-accent);
    transform: scale(1.05);
}

#login form .wp-pwd {
    display: block;
    position: relative;
}

#login form .wp-pwd .button.wp-hide-pw {
    right: 8px;
    top: 0;
    bottom: 0;
    min-width: 38px;
    width: 38px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #64748B;
    background: transparent;
    line-height: 1;
    transition: var(--ebd-transition);
}

#login form .wp-pwd .button.wp-hide-pw .dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    line-height: 1;
}

#login form .wp-pwd .button.wp-hide-pw:hover,
#login form .wp-pwd .button.wp-hide-pw:focus {
    color: var(--ebd-accent);
    background: rgba(197,160,89,0.1);
    box-shadow: none;
}

#login form input[type="text"]:focus,
#login form input[type="password"]:focus {
    background: #FFFFFF;
    border-color: var(--ebd-accent);
    box-shadow: var(--ebd-shadow-focus);
    outline: none;
}

/* Lembrar de mim e Esqueci a senha */
.login .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
    margin: 2px 0 24px;
}

.login .forgetmenot label {
    font-size: 14px;
    font-weight: 400;
    color: var(--ebd-text-light);
    display: inline-flex;
    align-items: center;
    margin: 0;
}

#login form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--ebd-border);
    box-shadow: none;
    transition: var(--ebd-transition);
}

#login form input[type="checkbox"]:checked {
    background-color: var(--ebd-accent);
    border-color: var(--ebd-accent);
}

#login form input[type="checkbox"]:focus {
    border-color: var(--ebd-accent);
    box-shadow: var(--ebd-shadow-focus);
}

#nav { display: none !important; }

/* Botão de Submit */
.login .submit {
    float: none;
    padding: 0;
    margin: 0;
}

#login form input[type="submit"] {
    width: 100%;
    max-width: 280px;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ebd-primary) 0%, #243447 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--ebd-transition);
    box-shadow: 0 10px 20px rgba(26,38,52,0.16);
    text-shadow: none;
    height: auto;
    float: none;
    margin: 0 auto;
}

#login form input[type="submit"]:hover {
    background: linear-gradient(135deg, #223244 0%, var(--ebd-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(26,38,52,0.22);
}

#login form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 10px 18px rgba(26,38,52,0.18);
}

/* Mensagens de erro/sucesso do WP */
#login .message,
#login .success,
#login .notice {
    max-width: 400px;
    margin: 0 auto 24px;
    border-left-color: var(--ebd-accent);
    background: #F8FAFC;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--ebd-border);
    border-left: 4px solid var(--ebd-accent);
}

#login_error {
    max-width: 400px;
    margin: 0 auto 24px;
    border-left-color: #EF4444;
    background: #FEF2F2;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #FEE2E2;
    border-left: 4px solid #EF4444;
}

/* ==========================================================================
   LINK "CRIAR CONTA" (abaixo do login)
   ========================================================================== */

.ebd360-create-account-link {
    max-width: 400px;
    margin: 24px auto 0;
    text-align: center;
    padding: 0 26px;
    animation: ebd360-rise-in 0.52s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ebd360-create-account-link p {
    font-size: 14px;
    color: var(--ebd-text-light);
    margin: 0 0 12px;
    position: relative;
}

.ebd360-create-account-link p::before,
.ebd360-create-account-link p::after {
    content: "";
    display: inline-block;
    width: 72px;
    height: 1px;
    margin: 0 12px 4px;
    background: linear-gradient(90deg, transparent, var(--ebd-border-strong));
}

.ebd360-create-account-link p::after {
    background: linear-gradient(90deg, var(--ebd-border-strong), transparent);
}

.ebd360-create-account-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ebd-accent);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--ebd-accent);
    border-radius: 12px;
    transition: var(--ebd-transition);
    background: rgba(255,255,255,0.74);
    box-shadow: 0 10px 20px rgba(197,160,89,0.08);
}

.ebd360-create-account-link a:hover {
    background: var(--ebd-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(197,160,89,0.24);
}

.ebd360-create-account-link a .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   PAINEL DE CADASTRO
   ========================================================================== */

.ebd360-register-panel {
    width: 45%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.86);
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
    max-height: 100vh;
}

.ebd360-register-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

/* Cabeçalho do cadastro */
.ebd360-register-header {
    text-align: center;
    margin-bottom: 28px;
}

.ebd360-register-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ebd-text);
    margin: 0 0 8px;
}

.ebd360-register-header p {
    font-size: 14px;
    color: var(--ebd-text-light);
    margin: 0;
}

/* ==========================================================================
   CARDS DE PERFIL
   ========================================================================== */

.ebd360-register-section {
    margin-bottom: 24px;
}

.ebd360-register-section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ebd-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ebd360-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ebd360-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px 14px;
    background: #F8FAFC;
    border: 2px solid var(--ebd-border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--ebd-transition);
    text-align: center;
}

.ebd360-profile-card:hover {
    border-color: var(--ebd-accent);
    background: #FFFBF5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197,160,89,0.12);
}

.ebd360-profile-card.selected {
    border-color: var(--ebd-accent);
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF8ED 100%);
    box-shadow: 0 4px 16px rgba(197,160,89,0.2);
}

.ebd360-profile-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--ebd-transition);
}

.ebd360-profile-card.selected .ebd360-profile-card-check {
    opacity: 1;
    transform: scale(1);
}

.ebd360-profile-card-check .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--ebd-accent);
}

.ebd360-profile-card-icon {
    font-size: 28px !important;
    width: 28px !important;
    height: 28px !important;
    color: var(--ebd-secondary);
    transition: color 0.3s ease;
}

.ebd360-profile-card.selected .ebd360-profile-card-icon {
    color: var(--ebd-accent);
}

.ebd360-profile-card strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ebd-text);
}

.ebd360-profile-card small {
    font-size: 11px;
    color: var(--ebd-text-light);
    line-height: 1.3;
}

/* Erro nos cards */
.ebd360-profile-grid.section-error .ebd360-profile-card {
    border-color: var(--ebd-error);
    animation: ebd360-shake 0.4s ease;
}

/* ==========================================================================
   FORMULÁRIO DE CADASTRO
   ========================================================================== */

.ebd360-register-form {
    margin-bottom: 0;
}

.ebd360-form-group {
    margin-bottom: 16px;
}

.ebd360-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ebd-text);
    margin-bottom: 6px;
}

.ebd360-form-group label .required {
    color: var(--ebd-error);
}

.ebd360-form-group input[type="text"],
.ebd360-form-group input[type="email"],
.ebd360-form-group input[type="password"],
.ebd360-form-group input[type="tel"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    background: #F8FAFC;
    border: 1px solid var(--ebd-border);
    border-radius: 8px;
    color: var(--ebd-text);
    box-shadow: none;
    transition: var(--ebd-transition);
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.ebd360-form-group input:focus,
.ebd360-state-select:focus-within .ebd360-state-select__button {
    background: #FFFFFF;
    border-color: var(--ebd-accent);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

/* Campo com erro */
.ebd360-form-group input.field-error,
.ebd360-form-group select.field-error {
    border-color: var(--ebd-error);
    background: var(--ebd-error-bg);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* Row de 2 colunas */
.ebd360-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ebd360-form-row--city-state {
    grid-template-columns: minmax(0, 1fr) 150px;
}

.ebd360-state-select {
    position: relative;
}

.ebd360-state-select__button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 13px;
    background: #F8FAFC;
    border: 1px solid var(--ebd-border);
    border-radius: 8px;
    color: var(--ebd-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    transition: var(--ebd-transition);
}

.ebd360-state-select__button:hover {
    border-color: var(--ebd-border-strong);
    background: #FFFFFF;
}

.ebd360-state-select__button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: var(--ebd-accent);
    transition: transform 0.22s ease;
}

.ebd360-state-select.open .ebd360-state-select__button {
    background: #FFFFFF;
    border-color: var(--ebd-accent);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.15);
}

.ebd360-state-select.open .ebd360-state-select__button .dashicons {
    transform: rotate(180deg);
}

.ebd360-state-select__list {
    position: fixed;
    top: var(--ebd-state-list-top, 0);
    left: var(--ebd-state-list-left, 0);
    z-index: 99999;
    width: 220px;
    max-height: 240px;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid rgba(226,232,240,0.95);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15,23,42,0.14);
}

.ebd360-state-select.open .ebd360-state-select__list {
    display: grid;
    animation: ebd360-select-pop 0.18s ease both;
}

.ebd360-state-select__list.open {
    display: grid;
    animation: ebd360-select-pop 0.18s ease both;
}

.ebd360-state-select__list button {
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ebd-text);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--ebd-transition);
}

.ebd360-state-select__list button:first-child {
    grid-column: 1 / -1;
    color: var(--ebd-text-light);
    font-weight: 500;
    text-align: left;
}

.ebd360-state-select__list button:hover,
.ebd360-state-select__list button:focus,
.ebd360-state-select__list button[aria-selected="true"] {
    background: #FFFBF5;
    border-color: rgba(197,160,89,0.34);
    color: var(--ebd-accent);
    outline: none;
}

/* ==========================================================================
   CAMPOS OPCIONAIS (Colapsável)
   ========================================================================== */

.ebd360-form-optional {
    margin-bottom: 20px;
}

.ebd360-form-toggle-optional {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px dashed var(--ebd-border);
    border-radius: 8px;
    color: var(--ebd-text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ebd-transition);
    font-family: inherit;
}

.ebd360-form-toggle-optional:hover {
    border-color: var(--ebd-accent);
    color: var(--ebd-accent);
    background: #FFFBF5;
}

.ebd360-form-toggle-optional.open {
    border-color: var(--ebd-accent);
    color: var(--ebd-accent);
    border-style: solid;
    margin-bottom: 16px;
}

.ebd360-form-toggle-optional .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ebd360-form-optional-fields {
    animation: ebd360-slideDown 0.3s ease;
}

/* ==========================================================================
   FEEDBACK
   ========================================================================== */

.ebd360-register-feedback {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ebd360-register-feedback .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.feedback-error {
    background: var(--ebd-error-bg);
    border: 1px solid var(--ebd-error-border);
    color: #991B1B;
}

.feedback-error .dashicons {
    color: var(--ebd-error);
}

.feedback-success {
    background: var(--ebd-success-bg);
    border: 1px solid var(--ebd-success-border);
    color: #065F46;
}

.feedback-success .dashicons {
    color: var(--ebd-success);
}

/* ==========================================================================
   BOTÃO DE CADASTRO
   ========================================================================== */

.ebd360-register-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ebd-primary);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--ebd-transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    font-family: inherit;
    margin-bottom: 0;
}

.ebd360-register-submit:hover:not(:disabled) {
    background: var(--ebd-secondary);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.ebd360-register-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ebd360-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Spinner */
.ebd360-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: ebd360-spin 0.6s linear infinite;
}

/* ==========================================================================
   LINK "JÁ TENHO CONTA"
   ========================================================================== */

.ebd360-register-back {
    text-align: center;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--ebd-border);
}

.ebd360-register-back a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ebd-primary);
    text-decoration: none;
    min-height: 42px;
    padding: 10px 18px;
    background: #FFFFFF;
    border: 1px solid rgba(197,160,89,0.46);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(197,160,89,0.10);
    transition: var(--ebd-transition);
}

.ebd360-register-back a:hover {
    color: #FFFFFF;
    background: var(--ebd-accent);
    border-color: var(--ebd-accent);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(197,160,89,0.22);
}

.ebd360-register-back a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.ebd360-register-back a:hover .dashicons {
    transform: translateX(-3px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.ebd360-login-powered {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--ebd-text-light);
    opacity: 0.78;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes ebd360-spin {
    to { transform: rotate(360deg); }
}

@keyframes ebd360-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes ebd360-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ebd360-rise-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ebd360-login-enter {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ebd360-select-pop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .ebd360-login-panel { width: 45%; padding: 40px; }
    #login { width: 55%; }
    .ebd360-register-panel { width: 55%; }
    .ebd360-login-features { grid-template-columns: 1fr; }
}

@media screen and (max-width: 768px) {
    body.ebd360-login { flex-direction: column; }
    
    .ebd360-login-panel {
        width: 100%;
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .ebd360-login-brand { margin-bottom: 0; text-align: center; }
    .ebd360-login-brand h1 { font-size: 36px; }
    .ebd360-login-features { display: none; }
    
    #login {
        width: 100%;
        padding: 34px 20px 80px;
    }

    #login form {
        padding: 22px;
        border-radius: 16px;
    }

    .ebd360-login-welcome {
        margin-bottom: 24px;
    }

    .ebd360-register-panel {
        width: 100%;
        padding: 40px 20px 80px;
        max-height: none;
    }

    .ebd360-register-wrapper {
        max-width: 100%;
    }

    .ebd360-form-row {
        grid-template-columns: 1fr;
    }

    .ebd360-form-row--city-state {
        grid-template-columns: 1fr;
    }

    .ebd360-state-select__list {
        width: min(100%, 260px);
    }

    .ebd360-profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .ebd360-profile-card {
        padding: 14px 8px 10px;
    }

    .ebd360-profile-card strong {
        font-size: 13px;
    }

    .ebd360-profile-card small {
        font-size: 10px;
    }
    
    .ebd360-login-powered { display: none; }
}

@media screen and (max-width: 400px) {
    .ebd360-profile-grid {
        grid-template-columns: 1fr;
    }

    .ebd360-create-account-link p::before,
    .ebd360-create-account-link p::after {
        width: 42px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
