*, *::after, *::before {
    box-sizing: border-box;
}

:root {
    --veer-orange: #F1641E;
    --veer-black: #222222;
    --veer-dark-btn: #2F2B3A;
    --veer-border: #757575;
    --veer-gray-light: #F5F5F1;
}

/* Scoped specifically to standalone template if viewed directly */
body.page-template-veeru-auth-template {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: #f5f5f1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 24px 16px;
    margin: 40px auto;
}

/* Master Card Container */
.auth-card-container {
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e1e3df;
    overflow: hidden;
}

.auth-card-inner {
    padding: 40px 36px 32px;
}

/* Pane Switching */
.auth-login-view-wrapper {
    display: block;
}

.auth-register-view-wrapper {
    display: none;
}

.register-active-state .auth-login-view-wrapper {
    display: none;
}

.register-active-state .auth-register-view-wrapper {
    display: block;
}

/* Header & Typography */
.auth-card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.auth-title-sans {
    font-size: 26px;
    font-weight: 700;
    color: var(--veer-black);
    margin: 0;
}

.auth-title-serif {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    color: var(--veer-black);
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

/* Orange Logo Badge */
.auth-logo-badge {
    width: 46px;
    height: 46px;
    background: var(--veer-orange);
    color: #ffffff;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 6px;
    overflow: hidden;
}

.auth-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Inputs */
.form-group-etsy {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    position: relative;
}

.form-group-etsy label {
    font-size: 14px;
    font-weight: 700;
    color: var(--veer-black);
    margin-bottom: 6px;
    text-align: left;
}

.form-group-etsy label .req {
    color: #c84f14;
}

.form-group-etsy input[type="text"],
.form-group-etsy input[type="email"],
.form-group-etsy input[type="password"],
.form-group-etsy select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 15px;
    color: var(--veer-black);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-etsy input:focus,
.form-group-etsy select:focus {
    border-color: var(--veer-black);
    box-shadow: 0 0 0 1px var(--veer-black);
}

/* Password Eye Toggle */
.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container input {
    padding-right: 48px !important;
}

.password-toggle-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555555;
    font-size: 20px;
}

/* Pill Buttons */
.auth-btn-dark-pill {
    width: 100%;
    height: 48px;
    background: var(--veer-dark-btn);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    display: block;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
}

.auth-btn-dark-pill:hover {
    background: #1a1722;
}

.auth-pill-outline-btn {
    background: transparent;
    border: 1.5px solid var(--veer-black);
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--veer-black);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.auth-pill-outline-btn:hover {
    background: var(--veer-gray-light);
}

.auth-pill-outline-btn.block-btn {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
}

/* Options & Dividers */
.login-options-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.remember-me-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0 20px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 14px;
    color: #777777;
    font-size: 13px;
}

.auth-forgot-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--veer-black);
    margin: 0 0 10px;
}

.auth-trouble-link {
    text-align: center;
    margin-top: 18px;
}

.auth-trouble-link a, .veer-link-text-btn {
    color: var(--veer-black);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

/* Multi-Step Indicator & Progress Line */
.register-step-title-container {
    text-align: center;
    margin-bottom: 10px;
}

.header-indicator-node {
    display: none;
}

.header-indicator-node.active {
    display: block;
}

.indicator-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--veer-black);
    margin: 0;
}

.register-progress-bar-container {
    background: #e2e8f0;
    height: 6px;
    width: 100%;
    border-radius: 3px;
    position: relative;
    margin: 8px 0;
}

.register-active-progress-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background-color: var(--veer-dark-btn);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.step-progress-percentage-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.wizard-step-panel {
    display: none;
}

.wizard-step-panel.active {
    display: block;
}

/* Custom Select & File Picker */
.veeru-custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    width: 100%;
    height: 48px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-trigger:hover {
    border-color: #9ca3af;
}

.select-dropdown-panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
    display: none;
}

.veeru-custom-select.active .select-dropdown-panel {
    display: block;
}

.select-search-field {
    width: 100%;
    height: 38px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 10px;
    margin-bottom: 8px;
    outline: none;
}

.select-options-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.select-options-list li {
    padding: 8px 10px;
    font-size: 13.5px;
    cursor: pointer;
    border-radius: 4px;
    text-align: left;
}

.select-options-list li:hover {
    background: #f1f5f9;
    color: var(--veer-orange);
}

.select-options-list li.hidden {
    display: none;
}

.input-url-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #f8fafc;
    height: 48px;
    overflow: hidden;
}

.url-base {
    font-size: 12px;
    color: #64748b;
    padding: 0 12px;
}

.input-url-wrapper input {
    border: none !important;
    background: transparent !important;
}

.file-picker-field-container {
    border: 2px dashed #cbd5e1;
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.file-picker-field-container:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.file-picker-field-container span.dashicons-media-document {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #64748b;
    display: block;
    margin: 0 auto 6px;
}

.file-picker-field-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-chosen-caption-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.form-checkbox-alignment-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    font-size: 13px;
}

.step-navigation-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.wizard-back-to-login-btn, .wizard-back-btn {
    height: 48px;
    padding: 0 20px;
    background: transparent;
    border: 1.5px solid #cbd5e1;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

/* =========================================================
   STATUS BADGES & COLOR ALERT
   ========================================================= */

.field-error-msg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    animation: badgeSlideIn 0.2s ease;
}

.field-has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.status-display {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 6px;
    width: fit-content;
    animation: badgeSlideIn 0.2s ease-out;
}

.status-display:not(:empty) {
    display: inline-flex;
}

.status-display.available {
    background-color: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
}

.status-display.available .dashicons {
    color: #10b981;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.status-display.taken {
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

.status-display.taken .dashicons {
    color: #ef4444;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.status-display.checking {
    background-color: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e40af !important;
}

.status-display.checking .dashicons {
    color: #3b82f6;
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.veeru-alert.warning {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Success Card with 10-Second Countdown */
.register-success-card-panel {
    text-align: center;
    padding: 10px 0;
}

.success-circular-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.success-badge-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
}

.veer-success-color-box {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px;
    color: #065f46;
    text-align: left;
    margin: 15px 0 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.veer-alert-icon-wrap {
    flex-shrink: 0;
    margin-top: 2px;
}

.veer-alert-text-body strong {
    display: block;
    font-size: 11px;
    letter-spacing: 0.6px;
    color: #059669;
    margin-bottom: 4px;
}

.veer-alert-text-body p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #047857;
    font-weight: 500;
}

/* Countdown Bar */
.veer-redirect-countdown-container {
    margin: 16px 0 10px;
}

.veer-countdown-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.veer-countdown-fill {
    width: 100%;
    height: 100%;
    background: #10b981;
    transition: width 1s linear;
}

.veer-countdown-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.veer-countdown-label strong {
    color: #10b981;
}

.spin {
    animation: veeruSpin 0.9s linear infinite;
    display: inline-block;
}

@keyframes veeruSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes badgeSlideIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}