/* =========================================================
   GENERIC APP ACCOUNTS LAYOUT Framework
   ========================================================= */

/* Use the application wrapper to establish layout parameters safely */
.auth-app-wrapper .auth-viewport-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers the card perfectly between your base header and base footer */
    padding: 60px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    width: 100%;
}

/* Header Section Alignment */
.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;
    /* This overrides the base h1 bold settings to keep it slim */
    font-weight: 400; 
    line-height: 1.2;
    margin: 0;
}

/* Main Form Card Container */
.auth-app-wrapper .auth-card {
    background: #ffeedc;
    width: 100%;
    max-width: 450px; /* Locks the box width tightly, avoiding page stretch */
    border: 1px solid #7e7e7e; /* Matches your base-header border accents */
    border-radius: 4px;
    padding: 24px 26px;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Structural internal form block components */
.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;
}

.auth-app-wrapper .auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

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

.auth-app-wrapper .auth-context-link {
    font-size: 13px;
    color: #0066c0;
    text-decoration: none;
}

.auth-app-wrapper .auth-context-link:hover {
    color: #e67e22; /* Matches your Orange Base Book Price Highlight */
    text-decoration: underline;
}

/* Form Input Control Tuning */
.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 {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    color: #1f1f1f; /* Inherits base text color tint */
    background-color: #ffffff;
    border: 1px solid #ccc; /* Matches base input border styles */
    border-radius: 4px; /* Matches your base search input radius */
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out;
}

.auth-app-wrapper .auth-form-group input:focus {
    outline: none;
    border-color: #000000; /* Dark accent matching your base search button */
}

/* Primary Action Submit Button */
.auth-app-wrapper .btn-auth-submit {
    width: 100%;
    height: 36px;
    background: #3679ff;
    color: #ffffff;
    border: 1px solid #ffdaa4;
    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: #2553af
}

/* Footnotes and Legal fine print */
.auth-app-wrapper .auth-terms-text {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 16px;
    margin-bottom: 14px;
}
/* Center the paragraph text */
.auth-app-wrapper .auth-terms-text {
    text-align: center;
}
.auth-app-wrapper .auth-inline-link {
    color: #547792;
    text-decoration: none;
}

.auth-app-wrapper .auth-inline-link:hover {
    color: #1A3263;
    text-decoration: underline;
}

.auth-app-wrapper .auth-checkbox-row {
    margin-bottom: 4px;
}

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

/* Linear Structural Section Dividers */
.auth-app-wrapper .auth-section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777777; /* Matches base gray fonts */
    font-size: 12px;
    margin: 22px 0 14px 0;
    position: relative;
}

.auth-app-wrapper .auth-section-divider::before,
.auth-app-wrapper .auth-section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e5e5;
}

.auth-app-wrapper .auth-section-divider span {
    padding: 0 8px;
    background: #ffffff;
    z-index: 1;
}

/* Federated Third-Party Auth Section */
.auth-app-wrapper .auth-social-zone,
.auth-app-wrapper .auth-registration-zone {
    width: 100%;
}

.auth-app-wrapper .btn-auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px;
    background: linear-gradient(to bottom, #ffffff, #f7f8fa);
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    box-sizing: border-box;
}

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

.auth-app-wrapper .btn-auth-google span {
    font-size: 13px;
    color: #1f1f1f;
    font-weight: 500;
}

.auth-app-wrapper .auth-google-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}

/* Secondary Button Link: Platform Creation */
.auth-app-wrapper .btn-auth-register {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px;
    background: linear-gradient(to bottom, #f7f8fa, #e7e9ec);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    color: #1f1f1f;
    text-decoration: none;
    box-sizing: border-box;
}

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

/* Validation System Error Blocks */
.auth-app-wrapper .auth-error-alert {
    background-color: #ffeded; /* Matches base ad-banner error tokens */
    border: 1px solid #e5e5e5;
    color: #b00020;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 14px;
}