/* =====================================================
   WPHut Custom Auth — auth.css
   Dark, editorial aesthetic matching WPHut brand
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500&display=swap');

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark:    #EDF2F7;
    --bg-panel:   #073d2f;
    --bg-card:    #1a1a1a;
    --border:     #2a2a2a;
    --border-focus: #f5f5f5;
    --accent:     #f5f5f5;
    --accent-inv: #0a0a0a;
    --text-primary: #f5f5f5;
    --text-secondary: #f5f5f5;
    --text-muted:   #555;
    --error:      #ff5b5b;
    --success:    #4caf7d;
    --warning:    #f59e0b;
    --input-bg:   #f5f5f5;
    --font-display: 'Bowlby One', sans-serif;
    --font-body:    'Instrument Sans', sans-serif;
    --radius:     0px;
    --transition: 0.2s ease;
}

html, body {
    height: 100%;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body.wphut-auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Layout ---- */
.wphut-auth-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ---- Left visual panel ---- */
.wphut-auth-visual {
    flex: 0 0 420px;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 48px 48px 48px;
    position: relative;
    overflow: hidden;
}

.wphut-auth-visual::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,245,245,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.wphut-logo {
    display: block;
    margin-bottom: 64px;
}

.wphut-logo img {
    height: 42px;
    width: auto;
   
}

.wphut-visual-content {
    flex: 1;
}

.wphut-visual-content h2 {
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 400;
    line-height: 50px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.wphut-visual-content p {
   color: var(--text-secondary);
    line-height: 38px;
    margin-bottom: 36px;
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;

}

.wphut-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wphut-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Instrument Sans';
    
}

.wphut-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245,245,245,0.08);
    color: var(--text-primary);
    font-size: 11px;
    flex-shrink: 0;
}

/* Decorative dot grid */
.wphut-visual-dots {
    position: absolute;
    bottom: 40px;
    left: 48px;
    right: 48px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ---- Right form panel ---- */
.wphut-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg-dark);
    overflow-y: auto;
}

.wphut-form-inner {
    width: 100%;
    max-width: 520px;
}

/* ---- Form header ---- */
.wphut-form-header {
    margin-bottom: 36px;
}

.wphut-step-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.wphut-form-header h1 {
   font-family: var(--font-display);
    font-size: 30px;
    font-weight: 400;
    color: #0c4033;
    letter-spacing: -0.6px;
    margin-bottom: 10px;
    line-height: 1.2;
    text-transform: uppercase;
}
}

.wphut-form-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

.wphut-form-sub a {
    color:#073d2f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Alert messages ---- */
.wphut-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.wphut-alert-info {
    background: rgba(245,245,245,0.06);
    border-color: var(--border);
    color: var(--text-secondary);
}

.wphut-alert-error {
    background: rgba(255,91,91,0.08);
    border-color: rgba(255,91,91,0.3);
    color: var(--error);
}

.wphut-alert-success {
    background: rgba(76,175,125,0.08);
    border-color: rgba(76,175,125,0.3);
    color: var(--success);
}

/* ---- Field layout ---- */
.wphut-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wphut-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.wphut-field-row .wphut-field {
    margin-bottom: 0;
}

.wphut-field-row + .wphut-field {
    margin-top: 4px;
}

/* ---- Labels ---- */
.wphut-field label {
    font-weight: 400;
    color: #0c4033;
    letter-spacing: 0.2px;
    font-size: 17px;
    font-family: 'Instrument Sans';
}

.wphut-field label .required {
    color: var(--error);
    margin-left: 2px;
}

/* ---- Inputs ---- */
.wphut-field input[type="text"],
.wphut-field input[type="email"],
.wphut-field input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #757677;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.wphut-field input::placeholder {
    color: var(--text-muted);
}

.wphut-field input:focus {
    border-color: rgba(245,245,245,0.4);
    box-shadow: 0 0 0 3px rgba(245,245,245,0.05);
}

.wphut-field input.is-invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(255,91,91,0.08) !important;
}

/* ---- Password wrapper ---- */
.wphut-password-wrap {
    position: relative;
}

.wphut-password-wrap input {
    padding-right: 48px;
}

.wphut-toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color var(--transition);
}

.wphut-toggle-pass:hover {
    color: var(--text-primary);
}

.wphut-toggle-pass svg {
    width: 18px;
    height: 18px;
}

/* ---- Password strength ---- */
.wphut-password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.strength-track {
    flex: 1;
    height: 3px;
    background: #073d2f;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 46px;
    text-align: right;
}

/* ---- Checkbox + forgot row ---- */
.wphut-form-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    margin-top: -4px;
}

.wphut-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #073d2f;
    cursor: pointer;
    user-select: none;
}

.wphut-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--text-primary);
    cursor: pointer;
}

.wphut-forgot {
    font-size: 13px;
    color:#073d2f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wphut-forgot:hover {
    color: var(--text-primary);
}

/* ---- Select ---- */
.wphut-select-wrap {
    position: relative;
}

.wphut-select-wrap select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #757677;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.wphut-select-wrap select:focus {
    border-color: rgba(245,245,245,0.4);
    box-shadow: 0 0 0 3px rgba(245,245,245,0.05);
}

.wphut-select-wrap select option {
    background: #1a1a1a;
    color: var(--text-primary);
}

.wphut-select-wrap .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    pointer-events: none;
    color: var(--text-muted);
}

/* ---- Primary button ---- */
.wphut-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: #f1c40f;
    color: #073d2f;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
    margin-top: 4px;
    margin-bottom: 20px;
}

.wphut-btn-primary:hover:not(:disabled) {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.wphut-btn-primary:active {
    transform: translateY(0);
}

.wphut-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loader svg.spin {
    animation: spin 0.8s linear infinite;
    width: 20px;
    height: 20px;
}

/* ---- Terms ---- */
.wphut-terms {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.wphut-terms a {
    color: #073d2f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .wphut-auth-visual {
        display: none;
    }
    .wphut-auth-form-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 560px) {
    .wphut-field-row {
        grid-template-columns: 1fr;
    }
    .wphut-form-header h1 {
        font-size: 24px;
    }
    .wphut-auth-form-panel {
        padding: 32px 20px;
        align-items: flex-start;
    }
}