/* ========== Auth Forms (Login / Register) ========== */

.auth-entry-shell {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    min-height: min(760px, calc(100vh - 180px));
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 3rem);
    position: relative;
}

.auth-entry-video {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 0;
}

.auth-entry-scrim {
    background:
        linear-gradient(90deg, rgba(8, 20, 36, 0.82), rgba(8, 20, 36, 0.42)),
        rgba(0, 0, 0, 0.16);
    inset: 0;
    position: absolute;
    z-index: 1;
}

.auth-entry-panel {
    max-width: 520px;
    position: relative;
    width: min(100%, 520px);
    z-index: 2;
}

.auth-entry-heading {
    margin-bottom: 1.2rem;
}

.auth-entry-heading h1 {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin: 0 0 0.45rem;
}

.auth-entry-heading p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
}

.auth-card {
    max-width: 480px;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

/* You can wrap .placeholder-content with .auth-card, or just use this */
.placeholder-content.auth-card {
    text-align: left;
}

/* Base auth form layout */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Labels + inputs */
.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-grey);
}

/* Inputs */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form textarea {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder,
.auth-form input[type="text"]::placeholder,
.auth-form textarea::placeholder {
    color: #9ca3af;
}

.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="text"]:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    background-color: #f9fafb;
}

.auth-form textarea {
    min-height: 120px;
    resize: vertical;
}

.auth-submit-button {
    align-items: center;
    background: var(--primary-blue);
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    margin-top: 1rem;
    min-height: 46px;
    padding: 0.85rem 1rem;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.auth-submit-button:hover {
    background: #0056b3;
    box-shadow: 0 10px 24px rgba(0, 86, 179, 0.2);
    transform: translateY(-1px);
}

/* Checkbox row */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    cursor: pointer;
}

/* Error text */
.auth-error {
    color: #b91c1c;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Under-form helper text */
.auth-helper-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.auth-helper-text a {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

.auth-helper-text a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-entry-shell {
        align-items: flex-end;
        min-height: min(720px, calc(100vh - 140px));
        padding: 1rem;
    }

    .auth-card {
        padding: 1.25rem;
    }
}
