/* ==========================================================================
   Dream Abroad Portal — Login screen
   Palette taken from the Dream Abroad logo:
   orange #f8904a · deep purple #301058 · magenta #c82068
   Pure CSS. No framework, no build step.
   Developed by QTC Technologies
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand orange (from the logo swoosh + wordmark) */
    --accent-700: #dd7626;
    --accent-600: #f28a3c;
    --accent-500: #f89e58;
    --accent-200: #fbd0a8;
    --accent-100: #fde8d2;
    --accent-50:  #fdf4e9;

    /* Deep purple (from the globe + tagline) */
    --plum-900: #220b40;
    --plum-800: #301058;
    --plum-700: #3d1d6e;
    --plum-600: #4f2a8c;
    --plum-200: #d9cfe9;
    --plum-100: #ece5f5;
    --plum-50:  #f6f3fa;

    /* Magenta accent (the ESTD 2017 rule) */
    --pink-600: #c82068;

    /* Neutrals */
    --ink-900: #1d1430;
    --ink-700: #3f3654;
    --ink-500: #6b6380;
    --ink-400: #98919f;
    --ink-200: #e6e2ec;
    --ink-100: #f2f0f5;

    --ok-500:     #16a34a;
    --danger-600: #dc2626;
    --danger-100: #fee2e2;

    --page-bg: #f5f2f7;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-head: 'Poppins', var(--font-body);

    --r-sm:   8px;
    --r-md:   11px;
    --r-lg:   16px;
    --r-full: 999px;

    --shadow-card: 0 26px 70px -24px rgba(48, 16, 88, .35), 0 2px 8px rgba(48, 16, 88, .05);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-700);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-head); color: var(--ink-900); margin: 0; font-weight: 600; }
p  { margin: 0; }
a  { color: var(--plum-600); text-decoration: none; }
a:hover { color: var(--pink-600); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s;
    white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 2px; }

.btn--primary {
    background: var(--accent-600);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(242, 138, 60, .85);
}
.btn--primary:hover { background: var(--accent-700); }
.btn--primary:active { background: #c9671d; }

.btn--secondary {
    background: #fff;
    color: var(--plum-700);
    border-color: var(--ink-200);
}
.btn--secondary:hover { border-color: var(--plum-600); color: var(--plum-600); background: var(--plum-50); }

.btn--block { width: 100%; }
.btn--lg { min-height: 46px; font-size: 14px; }

/* --------------------------------------------------------------------------
   4. Form fields
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field + .field { margin-top: 16px; }

.input {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid var(--ink-200);
    border-radius: var(--r-sm);
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink-900);
    transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: var(--ink-400); }
.input:focus {
    outline: none;
    border-color: var(--accent-600);
    box-shadow: 0 0 0 3px var(--accent-100);
}
.input.is-invalid { border-color: var(--danger-600); box-shadow: 0 0 0 3px var(--danger-100); }

.field-error { font-size: 12px; color: var(--danger-600); display: flex; align-items: center; gap: 4px; }

/* ---- Input with an icon ---- */
.input-group { position: relative; display: flex; align-items: center; }

.input-group__suffix {
    position: absolute;
    right: 9px;
    background: none;
    border: 0;
    padding: 8px;
    color: var(--ink-400);
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 6px;
}
.input-group__suffix:hover { color: var(--accent-700); background: var(--accent-50); }
.input-group__suffix svg { width: 17px; height: 17px; }

/* Boxed icon variant — the icon sits in a soft tinted tile inside the field,
   with clear breathing room before the text starts. */
.input-group--boxed .input { padding-left: 56px; }
.input-group__icon-box {
    position: absolute;
    left: 7px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--accent-50);
    color: var(--accent-700);
    pointer-events: none;
    transition: background .16s, color .16s;
}
.input-group__icon-box svg { width: 17px; height: 17px; }
.input-group--boxed .input:focus ~ .input-group__icon-box,
.input-group--boxed .input:not(:placeholder-shown) ~ .input-group__icon-box { background: var(--accent-100); }
.input-group--boxed .input.is-invalid ~ .input-group__icon-box { background: var(--danger-100); color: var(--danger-600); }

/* ---- Checkbox ---- */
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-700);
    user-select: none;
}
.check input {
    width: 17px; height: 17px;
    accent-color: var(--accent-600);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Alerts
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: var(--r-sm);
    font-size: 13px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.alert--danger  { background: var(--danger-100); color: #991b1b; border-color: #fecaca; }
.alert--success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }

/* --------------------------------------------------------------------------
   6. Auth screen — page + card
   -------------------------------------------------------------------------- */
.auth-page {
    min-height: 100vh;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 88% 6%, rgba(242, 138, 60, .12), transparent 42%),
        radial-gradient(circle at 6% 94%, rgba(48, 16, 88, .09), transparent 40%),
        var(--page-bg);
}

.auth {
    width: 100%;
    max-width: 1120px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth__body {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   7. Auth — left brand panel
   -------------------------------------------------------------------------- */
.auth__aside {
    background:
        radial-gradient(circle at 78% 8%, rgba(242, 138, 60, .12), transparent 44%),
        linear-gradient(168deg, #fffdfb 0%, #faf0e4 100%);
    padding: 34px 38px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Dotted texture — echoes the dotted arc in the Dream Abroad logo */
.auth__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(242, 138, 60, .22) 1.1px, transparent 1.5px);
    background-size: 15px 15px;
    -webkit-mask-image: radial-gradient(ellipse 74% 52% at 56% 34%, #000 8%, transparent 74%);
    mask-image: radial-gradient(ellipse 74% 52% at 56% 34%, #000 8%, transparent 74%);
    opacity: .65;
    pointer-events: none;
}

.auth__aside > * { position: relative; z-index: 1; }

.auth__logo { display: flex; align-items: center; gap: 13px; }
.auth__logo img { max-height: 116px; width: auto; }

.auth__hero { margin-top: 26px; max-width: 340px; }
.auth__eyebrow { font-size: 14px; color: var(--ink-500); margin-bottom: 2px; }
.auth__hero h1 {
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--plum-800);
}
.auth__rule {
    display: block;
    width: 46px; height: 3px;
    border-radius: 3px;
    background: var(--accent-600);
    margin: 16px 0 15px;
}
.auth__hero p { font-size: 13.5px; line-height: 1.7; color: var(--ink-500); }

.auth__art { width: 100%; max-width: 430px; margin: auto auto 0; display: block; }

/* --------------------------------------------------------------------------
   8. Auth — right form panel
   -------------------------------------------------------------------------- */
.auth__main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 46px 40px;
    background: #fff;
}

.auth__card { width: 100%; max-width: 372px; }
.auth__card h2 { font-size: 26px; letter-spacing: -.015em; text-align: center; color: var(--plum-800); }
.auth__card .lead { color: var(--ink-500); font-size: 13.5px; margin: 8px 0 30px; text-align: center; }

/* Roomier fields on the auth screen */
.auth__card .input-group .input {
    min-height: 50px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 14px;
    border-radius: var(--r-md);
}
.auth__card .btn--block { min-height: 50px; border-radius: var(--r-md); font-size: 14px; }

.auth__mobile-logo { display: none; margin-bottom: 24px; justify-content: center; }
.auth__mobile-logo img { max-height: 96px; width: auto; }

.auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 24px;
    flex-wrap: wrap;
}
.auth__row a { font-size: 13px; font-weight: 500; }

/* "OR" separator between the two login buttons */
.auth__or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0;
    color: var(--ink-400);
    font-size: 12px;
    font-weight: 600;
}
.auth__or::before,
.auth__or::after { content: ''; flex: 1; height: 1px; background: var(--ink-200); }

.auth__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 12px;
    color: var(--ink-400);
}
.auth__secure svg { width: 14px; height: 14px; color: var(--ok-500); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   9. Auth — deep purple footer bar
   -------------------------------------------------------------------------- */
.auth__bar {
    background: var(--plum-800);
    color: #cfc4e4;
    padding: 13px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 11.5px;
    flex-wrap: wrap;
}
.auth__bar strong { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   10. Responsive — tablet & below (≤ 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .auth__body { grid-template-columns: 1fr 1fr; }
    .auth__aside { padding: 30px 30px 0; }
    .auth__hero h1 { font-size: 29px; }
    .auth__main { padding: 38px 30px; }
    .auth__logo img { max-height: 100px; }
}

/* --------------------------------------------------------------------------
   11. Responsive — single column (≤ 1024px)
   The artwork panel is dropped; the logo moves above the form instead.
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .auth-page { padding: 22px 18px; align-items: flex-start; }
    .auth { max-width: 520px; border-radius: var(--r-lg); }
    .auth__body { grid-template-columns: 1fr; }
    .auth__aside { display: none; }
    .auth__main { padding: 34px 26px; }
    .auth__card { max-width: 400px; }
    .auth__mobile-logo { display: flex; }
    .auth__bar { justify-content: center; text-align: center; padding: 12px 20px; }
}

/* --------------------------------------------------------------------------
   12. Responsive — phones (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .auth-page { padding: 14px 12px; }
    .auth__main { padding: 26px 18px; }
    .auth__card h2 { font-size: 22px; }
    .auth__row { gap: 8px; }
    .auth__bar { flex-direction: column; gap: 4px; font-size: 11px; }
    .auth__mobile-logo img { max-height: 84px; }
}

/* --------------------------------------------------------------------------
   13. Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
