/* =========================================================
   1. CORE VIEWPORT CENTERING FRAMEWORK
   ========================================================= */

/* Use application container sandbox wrapper to preserve layout integrity */
.auth-app-wrapper .auth-viewport-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px; /* Matched to your custom login top spacing gap */
    background-color: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

/* Header Elements Positioning */
.auth-app-wrapper .auth-header-container {
    width: 100%;
    max-width: 450px;
    text-align: left;
    margin-bottom: 14px;
}

.auth-app-wrapper .auth-main-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

/* =========================================================
   2. MAIN AUTHENTICATION WHITE CARD CONTAINER
   ========================================================= */
.auth-app-wrapper .auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 450px; /* Hard bounds that strictly lock the box width */
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px 26px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Core Structural Form Configuration */
.auth-app-wrapper .auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-app-wrapper .auth-form-group {
    margin-bottom: 14px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.auth-app-wrapper .auth-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

/* =========================================================
   3. INPUT FIELDS & INLINE RANDOMIZER ROW CONTROLS
   ========================================================= */

/* Creates the tight horizontal block axis for your custom 🎲 engine element */
.auth-app-wrapper .auth-username-input-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

/* The custom randomized 🎲 interaction control button styling */
.auth-app-wrapper .btn-auth-refresh {
    background: linear-gradient(to bottom, #ffffff, #f7f8fa);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    height: 34px; /* Matches exact height profile of input text fields */
    flex-shrink: 0;
    box-sizing: border-box;
}

.auth-app-wrapper .btn-auth-refresh:hover {
    background: #e7e9ec;
    border-color: #777777;
}

/* Hard targets text field element tags to completely prevent staircase distortion */
.auth-app-wrapper .auth-form-group input[type="text"],
.auth-app-wrapper .auth-form-group input[type="password"],
.auth-app-wrapper .auth-form-group input[type="email"],
.auth-app-wrapper .auth-text-input,
.auth-app-wrapper .auth-username-input-row input {
    width: 100% !important;
    height: 34px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: #1f1f1f !important;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease-in-out !important;
}

.auth-app-wrapper .auth-form-group input:focus,
.auth-app-wrapper .auth-username-input-row input:focus {
    outline: none !important;
    border-color: #000000 !important;
}

/* Accent Action Primary Submit Button */
.auth-app-wrapper .btn-auth-submit {
    width: 100%;
    height: 36px;
    background: #4fa7ca;
    color: #ffffff;
    border: 1px solid #4fa7ca;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: background-color 0.1s ease;
}

.auth-app-wrapper .btn-auth-submit:hover {
    background: #4fa7ca;
}

/* =========================================================
   4. PROGRESS TRACKER & MULTI-STEP BLUEPRINTS
   ========================================================= */
.auth-app-wrapper .auth-progress-wrapper {
    margin-bottom: 22px;
    width: 100%;
}

.auth-app-wrapper .auth-progress-track {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
    width: 100%;
}

.auth-app-wrapper .auth-progress-fill {
    width: 50%;
    height: 100%;
    background: #007791;
}

.auth-app-wrapper .auth-progress-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.auth-app-wrapper .auth-step-label {
    font-size: 11px;
    font-weight: 500;
    color: #777777;
}

.auth-app-wrapper .auth-step-label.active {
    color: #007791;
    font-weight: 700;
}

/* =========================================================
   5. BOOKISH DYNAMIC SUGGESTION ZONE & EMAIL OPT-IN
   ========================================================= */
.auth-app-wrapper .auth-suggestion-zone {
    background-color: #fffaf0; /* Distinct literary amber highlight tint */
    border: 1px dashed #e67e22;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 8px;
    box-sizing: border-box;
    width: 100%;
}

.auth-app-wrapper .auth-alias-optin-box {
    border: none;
    padding: 0;
    margin: 0;
}

.auth-app-wrapper .auth-alias-optin-box label {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
}

.auth-app-wrapper .auth-alias-optin-box strong {
    color: #007791;
}

/* =========================================================
   6. CUSTOM CHECKBOXES, ERROR PANELS & BOTTOM LOGINS
   ========================================================= */

/* Marketplace Seller Request Custom Box Toggles */
.auth-app-wrapper .auth-checkbox-toggle-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f8fa;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-top: 6px;
    box-sizing: border-box;
    width: 100%;
}

.auth-app-wrapper .auth-checkbox-input {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-app-wrapper .auth-checkbox-label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Bottom Sign-In Notice Alert Container (Moved under buttons) */
.auth-app-wrapper .auth-login-notice {
    background: #f7f8fa;
    padding: 12px 14px;
    border-radius: 4px;
    margin-top: 24px;
    border-left: 3px solid #4fa7ca;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.auth-app-wrapper .auth-notice-text {
    font-size: 13px;
    color: #555555;
}

.auth-app-wrapper .auth-notice-link {
    color: #1f1f1f;
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
}

.auth-app-wrapper .auth-notice-link:hover {
    color: #e67e22;
}

/* Error Fields Alerts */
.auth-app-wrapper .auth-error-alert,
.auth-app-wrapper .auth-field-error-zone {
    color: #b00020;
    font-size: 12px;
    margin-top: 4px;
}

/* Guardrail security hidden wrapper (Honeypot) */
.auth-app-wrapper .auth-hidden-field {
    display: none;
    visibility: hidden;
}