/* SaasGMS Auth Page Styles - 2 Column Layout with Project Theme Elements */
html {
    scrollbar-gutter: stable;
    /* Prevent layout shift when scrollbar appears/disappears */
}

:root {
    --auth-bg-page: #000000;
    /* Project Primary (Black) */
    --auth-bg-card: #000000;
    /* Project Secondary (Dark Grey) */
    --auth-bg-input: #171717;
    --auth-text-white: #ffffff;
    --auth-text-black: #000000;
    --auth-text-secondary: rgba(235, 235, 245, 0.75);
    --auth-border-subtle: rgba(235, 235, 245, 0.16);
    --auth-font-family: 'Inter', sans-serif;
    --auth-btn-bg: #ffffff;
    --auth-btn-text: #000000;
}

.saasgms-auth-wrapper {
    display: flex;
    min-height: 100vh;
    align-items: center;
    /* Center vertically like Google's */
    justify-content: center;
    background-color: var(--bg-secondary, #171717);
    /* Page slightly lighter to contrast black card? Or just standard black */
    font-family: var(--font-family, var(--auth-font-family));
    box-sizing: border-box;
    padding: 16px;
    color: var(--auth-text-white);
}

.saasgms-auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    /* Ensure strict centering */
    /* Wide card for 2 columns */
    background-color: var(--auth-bg-card);
    /* Primary Black */
    border: 1px solid var(--auth-border-subtle);
    /* Border to define card on dark bg */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    /* Inner border effect */
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.4);
    min-height: 520px;
    /* Ensure substantial height */
}

@media (max-width: 900px) {
    .saasgms-auth-card {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }
}

/* Left Column - Info */
.saasgms-auth-col-left {
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Fix grid overflow */
    justify-content: space-between;
    /* Pushes content: Top vs Bottom */
}

/* Container for Logo, Title, Desc to stay at top */
.saasgms-auth-top-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.saasgms-auth-logo {
    width: 42px;
    height: 48px;
    margin-bottom: 24px;
}

.saasgms-auth-logo svg {
    width: 100%;
    height: 100%;
}

.saasgms-auth-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.72px;
    color: var(--auth-text-white);
    margin: 0 0 24px 0;
}

.saasgms-auth-desc {
    font-size: 16px;
    /* Slightly reduced as per previous step preference, but close to 18px */
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.18px;
    color: var(--auth-text-white);
    opacity: 0.9;
    margin: 0;
}


/* Right Column - Form */
.saasgms-auth-col-right {
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: center;
}

/* Form Styles */
.saasgms-auth-form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.saasgms-auth-inputs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.saasgms-auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saasgms-auth-label {
    font-size: 18px;
    font-weight: 500;
    line-height: 136%;
    letter-spacing: -0.18px;
    color: var(--Label-Secondary, rgba(235, 235, 245, 0.75));
    font-family: 'Inter', sans-serif;
    font-style: normal;
    margin-left: 0;
    margin-bottom: 16px;
    padding: 0 24px;
}

.saasgms-auth-input-wrapper {
    position: relative;
    width: 100%;
}

/* Input: Project Theme Sizing */
.saasgms-auth-input {
    width: 100%;
    padding: 16px 24px;
    /* Similar to project 10px 14px but balanced */
    border-radius: 16px;
    background: var(--BG-Second, #171717);
    border: 1px solid var(--Label-Tertiary, rgba(235, 235, 245, 0.16));
    font-size: 18px;
    color: var(--Label-Primary, #FFF);
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -0.18px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
    height: 56px;
    /* Fixed height for consistency */
}

.saasgms-auth-input::placeholder {
    color: var(--auth-border-subtle);
}

.saasgms-auth-input-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.2s;
}

.saasgms-auth-input:focus {
    border-color: var(--auth-text-white);
}

/* Baseline input styling */
.saasgms-auth-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.saasgms-auth-wrapper textarea,
.saasgms-auth-wrapper select {
    border-radius: 16px;
    border: 1px solid var(--Label-Tertiary, rgba(235, 235, 245, 0.16));
    background: var(--BG-Second, #171717);
    color: var(--Label-Primary, #FFF);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -0.18px;
}

.saasgms-auth-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.saasgms-auth-wrapper select {
    height: 56px;
    padding: 16px 24px;
}

.saasgms-auth-wrapper textarea {
    padding: 16px 24px;
    min-height: 56px;
}

/* Bottom Navigation / Actions */
.saasgms-auth-actions-group {
    display: flex;
    flex-direction: column;
    /* Stack button row and terms */
    align-items: flex-end;
    /* Align to right */
    justify-content: flex-end;
    margin-top: 48px;
    gap: 16px;
    /* Space between button row and terms */
}

.saasgms-auth-terms {
    font-size: 13px;
    line-height: 1.5;
    color: var(--auth-text-secondary);
    text-align: right;
    /* Ensure text matches right alignment */
    max-width: 340px;
    /* Constrain width for better reading block */
    margin: 0;
}

.saasgms-auth-terms a {
    color: var(--auth-text-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s;
}

.saasgms-auth-terms a:hover {
    border-color: var(--auth-text-white);
}

/* Social Buttons */
.saasgms-auth-socials {
    display: flex;
    gap: 16px;
}

.saasgms-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Matches Input/Button Height */
    width: 48px;
    border-radius: 16px;
    background-color: var(--auth-btn-bg);
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
    padding: 0;
    /* Optional: Add visible border if needed, removed for clean look */
}

.saasgms-social-btn:hover {
    transform: scale(1.05);
}

.saasgms-social-btn:active {
    transform: scale(0.95);
}

.saasgms-social-btn-border {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid var(--auth-border-subtle);
    pointer-events: none;
}


/* "Next" Primary Button - Visuals handled by .btn .btn-primary */
.saasgms-auth-submit {
    height: 48px;
    /* Match height of social buttons/inputs */
    /* Resetting some specific spacing/alignment if needed */
}

/* Removed :hover and :active to let btn-primary handle interactions */

/* Switch Link Styling (Create Account / Login) */
.saasgms-auth-switch-text {
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.36;
    letter-spacing: -0.09px;
    color: var(--auth-text-white);
    margin-right: 24px;
}

.saasgms-auth-switch-link {
    color: var(--auth-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-top: 4px;
}

.saasgms-auth-switch-link:hover {
    color: var(--auth-text-white);
}

.saasgms-auth-nav-container {
    display: flex;
    align-items: center;
}


/* Helpers */
.saasgms-hidden {
    display: none;
}



/* Messages - Stylish Glass */
.saasgms-messages {
    margin-bottom: 24px;
}

.saasgms-alert {
    padding: 12px 14px;
    /* Theme padding */
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(255, 69, 58, 0.1);
    color: #FF453A;
    border: 1px solid rgba(255, 69, 58, 0.2);
}

.saasgms-success {
    background: rgba(48, 209, 88, 0.1);
    color: #30D158;
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.saasgms-alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

.saasgms-auth-lang {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 24px;
    pointer-events: auto;
}

.saasgms-auth-lang .saasgms-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text-secondary);
}

.saasgms-auth-lang .saasgms-lang-label {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.saasgms-auth-lang .saasgms-lang-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Footer Styling (Outside Card) - Dark Theme Style */
.saasgms-auth-footer-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.saasgms-footer-link {
    color: var(--auth-text-secondary);
    font-size: 12px;
    text-decoration: none;
    margin-left: 16px;
}
