/* ==========================================================================
   Auth — Modern Professional Layout
   Colors: #ffdc5f (brand yellow) | #1a1b1f (dark) | #252c32 (text)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.auth-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f5f0;
}

/* Left: form panel */
.auth-layout__form-panel {
    display: flex;
    flex-direction: column;
    width: 48%;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

/* Top bar inside form panel */
.auth-layout__header {
    padding: 36px 52px 0;
    flex-shrink: 0;
}

.auth-layout__logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Centered body */
.auth-layout__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 52px 56px;
}

.auth-layout__body-inner {
    width: 100%;
    max-width: 380px;
}

/* Right: visual panel */
.auth-layout__visual-panel {
    position: relative;
    width: 52%;
    min-height: 100vh;
    overflow: hidden;
    background: #1a1b1f;
}

.auth-layout__visual-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.72;
}

.auth-layout__visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26, 27, 31, 0.18) 0%,
        rgba(26, 27, 31, 0.72) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px 52px;
    pointer-events: none;
}

/* Accent bar on visual panel */
.auth-layout__visual-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffdc5f;
}

.auth-layout__visual-tagline {
    color: #ffffff;
    font-family: "darker-grotesque-bold", sans-serif;
    font-size: 32px;
    line-height: 1.18;
    max-width: 380px;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.auth-layout__visual-sub {
    color: rgba(255, 255, 255, 0.78);
    font-family: "inter-Regular", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    max-width: 340px;
    margin: 0;
}

/* Feature pills on visual panel */
.auth-layout__visual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.auth-layout__visual-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    font-family: "inter-Regular", sans-serif;
    font-size: 12px;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.auth-layout__visual-pill svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #ffdc5f;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Accent bar on left panel top */
.auth-layout__form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffdc5f;
}

/* --------------------------------------------------------------------------
   Form block
   -------------------------------------------------------------------------- */

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form__header {
    margin-bottom: 36px;
}

.auth-form__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255, 220, 95, 0.22);
    border: 1px solid rgba(255, 220, 95, 0.45);
    color: #1a1b1f;
    font-family: "inter-SemiBold", sans-serif;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffdc5f;
    flex-shrink: 0;
}

.auth-form__title {
    font-family: "darker-grotesque-bold", sans-serif;
    font-size: 34px;
    line-height: 1.1;
    color: #1a1b1f;
    margin: 0 0 10px;
    letter-spacing: -0.025em;
}

.auth-form__subtitle {
    font-family: "inter-Regular", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* Fields */
.auth-form__fields {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-form__label {
    font-family: "inter-SemiBold", sans-serif;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
}

.auth-form__input {
    height: 46px;
    width: 100%;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fafaf7;
    font-family: "inter-Regular", sans-serif;
    font-size: 15px;
    line-height: 1.25;
    color: #1a1b1f;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
}

.auth-form__input::placeholder {
    color: #9ca3af;
}

.auth-form__input:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.auth-form__input:focus {
    outline: none;
    border-color: #ffdc5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 220, 95, 0.22);
}

.auth-form__input.is-invalid {
    border-color: #f87171;
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.auth-form__error {
    font-family: "inter-Regular", sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    color: #dc2626;
    margin: 0;
}

/* Form-level notice (e.g. wrong email/password) — plain red text, no box */
.auth-form__notice {
    font-family: "inter-Regular", sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: #dc2626;
    margin: 0;
}

/* Password field */
.auth-form__password-wrap {
    position: relative;
}

.auth-form__password-wrap .auth-form__input {
    padding-right: 50px;
}

.auth-form__password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-form__password-toggle:hover {
    background: rgba(255, 220, 95, 0.2);
    color: #1a1b1f;
}

.auth-form__password-toggle svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Actions row (forgot password) */
.auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: -8px;
}

.auth-form__link {
    font-family: "inter-SemiBold", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #252c32;
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
}

.auth-form__link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffdc5f;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.auth-form__link:hover {
    color: #1a1b1f;
}

.auth-form__link:hover::after {
    transform: scaleX(1);
}

/* Submit button */
.auth-form__submit {
    height: 48px;
    width: 100%;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: #ffdc5f;
    color: #1a1b1f;
    font-family: "darker-grotesque-bold", sans-serif;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
    box-shadow: 0 1px 3px rgba(26, 27, 31, 0.1), 0 4px 12px rgba(255, 220, 95, 0.28);
    position: relative;
    overflow: hidden;
}

.auth-form__submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.15s ease;
}

.auth-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 220, 95, 0.5), 0 1px 3px rgba(26, 27, 31, 0.1);
}

.auth-form__submit:hover::after {
    background: rgba(255, 255, 255, 0.08);
}

.auth-form__submit:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(26, 27, 31, 0.1);
}

.auth-form__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Divider */
.auth-form__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}

.auth-form__divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-form__divider-text {
    font-family: "inter-Regular", sans-serif;
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

/* Alert */
.auth-form__alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-family: "inter-Regular", sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-form__alert--danger {
    background: rgba(220, 38, 38, 0.06);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.auth-form__alert--success {
    background: rgba(34, 197, 94, 0.07);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.auth-form__alert ul {
    margin: 0;
    padding-left: 16px;
}

/* Footnote */
.auth-form__footnote {
    margin: 20px 0 0;
    text-align: center;
    font-family: "inter-Regular", sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Legacy pages (forgot password / reset) using old classes inside auth layout
   -------------------------------------------------------------------------- */

.auth-layout .col-left {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-layout .input-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth-layout .input-label {
    font-family: "inter-SemiBold", sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #374151;
}

.auth-layout .text-input {
    height: 46px;
    width: 100%;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fafaf7;
    font-family: "inter-Regular", sans-serif;
    font-size: 15px;
    color: #1a1b1f;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-layout .text-input:focus {
    outline: none;
    border-color: #ffdc5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 220, 95, 0.22);
}

.auth-layout .log-in {
    height: 48px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #ffdc5f;
    color: #1a1b1f;
    font-family: "darker-grotesque-bold", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(26, 27, 31, 0.1), 0 4px 12px rgba(255, 220, 95, 0.28);
}

.auth-layout .log-in:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 220, 95, 0.5);
}

.auth-layout .dashboard-main-heading,
.auth-layout .signup-headings {
    font-family: "darker-grotesque-bold", sans-serif;
    font-size: 34px;
    line-height: 1.1;
    color: #1a1b1f;
    letter-spacing: -0.025em;
    margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
    .auth-layout__form-panel { width: 55%; }
    .auth-layout__visual-panel { width: 45%; }
    .auth-layout__header { padding: 28px 36px 0; }
    .auth-layout__body { padding: 32px 36px 48px; }
}

@media (max-width: 767px) {
    .auth-layout { flex-direction: column; background: #ffffff; }
    .auth-layout__form-panel { width: 100%; min-height: 100vh; }
    .auth-layout__visual-panel { display: none; }
    .auth-layout__header { padding: 24px 24px 0; }
    .auth-layout__body { padding: 28px 24px 48px; align-items: flex-start; }
    .auth-layout__body-inner { max-width: 100%; }
    .auth-form__title { font-size: 28px; }
}
