/* HeroFixer UI — Auth Styles v2 — Mobile First */
*,*::before,*::after{box-sizing:border-box}
.hf-auth-page{margin:0;padding:0;min-height:100vh;background:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#1a1a1a;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
.hf-auth-page #wpadminbar{display:none!important}
.hf-auth-page html{margin-top:0!important}

.hf-auth-wrapper{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:16px}
.hf-auth-card{background:#fff;border-radius:12px;padding:32px 24px;width:100%;max-width:420px;box-shadow:0 2px 12px rgba(0,0,0,.06);animation:hfFadeIn .3s ease-out}
.hf-auth-logo{text-align:center;margin-bottom:20px}
.hf-auth-logo img{height:28px;width:auto;object-fit:contain}
.hf-auth-title{font-size:18px!important;font-weight:600!important;text-align:center;margin:0 0 4px!important;color:#1a1a1a!important;line-height:1.3!important}
.hf-emoji{margin-left:4px}
.hf-auth-subtitle{font-size:13px!important;color:#6b7280!important;text-align:center;margin:0 0 20px!important;line-height:1.5!important}

/* Override global heading sizes on all HeroFixer pages */
.hf-auth-page h1,.hf-auth-page h2,.hf-auth-page h3,.hf-auth-page h4,.hf-auth-page h5,.hf-auth-page h6{font-family:inherit!important}
.hf-auth-page h1{font-size:18px!important;font-weight:600!important;line-height:1.3!important}
.hf-auth-page h2{font-size:16px!important;font-weight:600!important;line-height:1.3!important}
.hf-auth-page h3{font-size:15px!important;font-weight:600!important;line-height:1.3!important}
.hf-dash-page h1,.hf-dash-page h2{font-size:18px!important;font-weight:600!important;line-height:1.3!important}
.hf-dash-page h3{font-size:15px!important;font-weight:600!important;line-height:1.3!important}
.hf-dash-page h4{font-size:14px!important;font-weight:600!important;line-height:1.3!important}
.hf-text-muted{font-size:11px;color:#9ca3af}

/* Forms */
.hf-form-group{margin-bottom:14px}
.hf-form-group label{display:block;font-size:13px;font-weight:500;color:#374151;margin-bottom:5px}
.hf-form-group input[type="text"],.hf-form-group input[type="email"],.hf-form-group input[type="password"],.hf-form-group input[type="tel"],.hf-form-group input[type="number"],.hf-form-group input[type="time"],.hf-form-group select,.hf-form-group textarea{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;color:#1a1a1a;background:#fff;transition:border-color .2s,box-shadow .2s;outline:none;font-family:inherit;-webkit-appearance:none}
.hf-form-group input:focus,.hf-form-group select:focus,.hf-form-group textarea:focus{border-color:#88ba26;box-shadow:0 0 0 3px rgba(136,186,38,.12)}
.hf-form-group input::placeholder,.hf-form-group textarea::placeholder{color:#9ca3af}
.hf-form-group textarea{resize:vertical}
.hf-form-group select{background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;cursor:pointer}

.hf-input-icon{position:relative}
.hf-input-icon .hf-input-icon-left{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#9ca3af;pointer-events:none}
.hf-input-icon .hf-input-icon-left+input{padding-left:36px}
.hf-password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#9ca3af;padding:4px;display:flex;align-items:center}
.hf-password-toggle:hover{color:#6b7280}
.hf-input-otp{text-align:center;font-size:20px!important;letter-spacing:8px;font-weight:600}
.hf-form-row-right{text-align:right;margin-top:4px}

/* Error */
.hf-auth-error{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#dc2626;font-size:13px;margin-bottom:14px;line-height:1.4}
.hf-auth-error svg{flex-shrink:0}

/* Buttons */
.hf-btn{display:flex;align-items:center;justify-content:center;width:100%;padding:11px 16px;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s,transform .1s;text-decoration:none;gap:8px}
.hf-btn:active{transform:scale(.98)}
.hf-btn-primary{background:#88ba26;color:#fff}
.hf-btn-primary:hover{background:#739e1f}
.hf-btn-primary:disabled{background:#c5d99a;cursor:not-allowed}
.hf-btn-google{background:#fff;color:#374151;border:1px solid #d1d5db;font-weight:500;font-size:14px}
.hf-btn-google:hover{background:#f9fafb;border-color:#9ca3af}
.hf-btn-outline{background:#fff;color:#374151;border:1px solid #d1d5db;font-weight:500}
.hf-btn-outline:hover{background:#f9fafb;border-color:#9ca3af}
.hf-btn-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:hfSpin .6s linear infinite}
@keyframes hfSpin{to{transform:rotate(360deg)}}

/* Divider */
.hf-auth-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:#9ca3af;font-size:13px}
.hf-auth-divider::before,.hf-auth-divider::after{content:'';flex:1;height:1px;background:#e5e7eb}

/* Footer */
.hf-auth-footer-text{text-align:center;font-size:13px;color:#6b7280;margin-top:16px;margin-bottom:0}
.hf-link-primary{color:#88ba26;text-decoration:none;font-weight:500}
.hf-link-primary:hover{color:#739e1f;text-decoration:underline}
.hf-link-small{color:#88ba26;text-decoration:none;font-size:13px}
.hf-link-small:hover{text-decoration:underline}
.hf-resend-text{text-align:center;font-size:13px;color:#6b7280;margin-bottom:14px}
.hf-verify-illustration{text-align:center;margin-bottom:14px}

/* Success */
.hf-auth-success{text-align:center;padding:36px 24px;background:#f0f7e3}
.hf-success-icon{margin-bottom:16px}
.hf-success-title{font-size:20px;font-weight:700;color:#1a1a1a;margin:0 0 8px}
.hf-success-text{font-size:14px;color:#6b7280;margin:0 0 20px;line-height:1.5}
.hf-auth-success .hf-btn-primary{max-width:240px;margin:0 auto}

/* Role Select */
.hf-role-select-card{max-width:480px}
.hf-role-options{display:flex;flex-direction:column;gap:12px;margin-bottom:8px}
.hf-role-card{display:flex;align-items:flex-start;gap:14px;padding:16px;border:2px solid #e5e7eb;border-radius:10px;text-decoration:none;color:inherit;transition:border-color .2s,background .2s}
.hf-role-card:hover{border-color:#88ba26;background:#f8fdf0}
.hf-role-icon{flex-shrink:0;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#f0f7e3;border-radius:10px}
.hf-role-name{font-size:15px;font-weight:600;margin:0 0 2px;color:#1a1a1a}
.hf-role-desc{font-size:13px;color:#6b7280;margin:0;line-height:1.4}

/* Animations */
@keyframes hfFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.hf-step-entering{animation:hfFadeIn .3s ease-out}

/* ============ RESPONSIVE ============ */
@media(min-width:481px){
    .hf-auth-card{padding:40px 36px}
    .hf-auth-title{font-size:20px}
    .hf-auth-logo img{height:32px}
}
@media(max-width:480px){
    .hf-auth-wrapper{padding:0;align-items:flex-start}
    .hf-auth-card{border-radius:0;box-shadow:none;max-width:100%;min-height:100vh;display:flex;flex-direction:column;justify-content:center}
    .hf-auth-success{min-height:100vh}
    .hf-role-select-card{max-width:100%}
}
