/* ==========================================================================
   Auth Layout — matches QS RevLayout isAuthLayout
   ========================================================================== */

/* Reset global html/body styles for auth pages */
html:has(.auth-layout),
html:has(.auth-layout) body {
    background: none;
    min-height: auto;
    margin: 0;
    padding: 0;
}

/* Full-page split layout */
.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* LEFT SIDE: Form area — QS: w-full lg:w-1/2 bg-primary-25 */
.auth-form-side {
    width: 100%;
    background-color: var(--primary-25);
    display: flex;
    flex-direction: column;
    padding: 32px 32px 8px;
    order: 2;
}

@media (min-width: 576px) {
    .auth-form-side {
        padding: 48px 48px 8px;
    }
}

@media (min-width: 992px) {
    .auth-form-side {
        width: 50%;
        order: 1;
    }
}

/* Vertically center form — QS: flex-grow flex flex-col justify-center items-center */
.auth-form-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Max width container — QS: max-w-[439px] */
.auth-form-content {
    width: 100%;
    max-width: 439px;
}

/* Form — QS: w-full space-y-4 (16px gap) */
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Logo — QS: h-[35px] w-auto */
.auth-logo {
    display: flex;
    justify-content: flex-start;
}

.auth-logo img {
    height: 35px;
    width: auto;
}

/* Heading — QS: h3 = text-3xl (34px), bold, monochrome-900 */
.auth-heading {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--monochrome-900);
    margin: 0;
}

/* "Need an account?" row — QS: flex items-baseline gap-2 */
.auth-create-account {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.auth-create-account p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--monochrome-900);
    margin: 0;
}

.auth-create-account a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-500);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-300);
}

.auth-create-account a:hover {
    color: var(--primary-600);
    text-decoration: none;
}

/* Form fields — matches QS RevInput size="md" */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--monochrome-900);
}

.auth-field label .required {
    color: #EF4444;
}

.auth-field input {
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    color: var(--monochrome-900);
    background-color: #fff;
    border: 1px solid var(--monochrome-200);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.auth-field input::placeholder {
    color: var(--monochrome-400);
}

.auth-field input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px #a2bafc;
}

/* Error display — collapses when empty to avoid visual gap */
.auth-form #error:empty {
    display: none;
}

.auth-form #error {
    font-size: 12px;
    color: #EF4444;
    text-align: left;
}

.auth-form #error img {
    width: 30px;
}

/* Forgot password — QS: flex justify-end, RevLink underline */
.auth-forgot {
    display: flex;
    justify-content: flex-end;
}

.auth-forgot a {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary-500);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-300);
}

.auth-forgot a:hover {
    color: var(--primary-600);
}

/* Submit button — QS: RevButton primary w-full */
.auth-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: var(--primary-500);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.auth-submit-btn:hover {
    background-color: var(--primary-600);
}

.auth-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px #a2bafc;
}

/* Copyright footer — QS: text-center text-xs text-gray-500 pt-8 */
.auth-copyright {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    padding-top: 32px;
    margin: 0;
}

/* ==========================================================================
   RIGHT SIDE: Hero image — QS: hidden lg:flex lg:w-1/2
   ========================================================================== */
.auth-hero-side {
    display: none;
    position: relative;
    background-size: cover;
    background-position: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 32px;
    order: 1;
}

@media (min-width: 992px) {
    .auth-hero-side {
        display: flex;
        width: 50%;
        min-height: 100vh;
        order: 2;
    }
}

/* Dark overlay — QS: absolute inset-0 bg-black opacity-40 */
.auth-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.4;
}

/* Hero text — QS: relative z-10 text-center max-w-xl */
.auth-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 576px;
}

/* Hero heading — QS: font-display font-extralight text-[50px] tracking-[1.5px] mb-6 */
.auth-hero-content h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 200;
    font-size: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    color: #fff;
    line-height: 1.2;
}

/* ==========================================================================
   Create Account Info Dialog — matches QS RevDialog variant="info"
   ========================================================================== */
.auth-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.auth-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow:
        0px 3px 14px 2px rgba(0, 0, 0, 0.12),
        0px 8px 10px 1px rgba(0, 0, 0, 0.14),
        0px 5px 5px -3px rgba(0, 0, 0, 0.20);
}

.auth-dialog-icon {
    margin-bottom: 16px;
}

.auth-dialog-icon i {
    font-size: 32px;
    color: var(--primary-500);
}

.auth-dialog-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--monochrome-900);
    margin: 0 0 8px;
}

.auth-dialog-body {
    font-size: 14px;
    line-height: 1.5;
    color: var(--monochrome-900);
    margin: 0 0 24px;
}

.auth-dialog-body a {
    text-decoration: underline;
    color: inherit;
}

.auth-dialog-body a:hover {
    text-decoration: none;
}

.auth-dialog-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    background-color: var(--primary-500);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
    min-width: 80px;
}

.auth-dialog-btn:hover {
    background-color: var(--primary-600);
}
