:root {
    --ink: #111009;
    --parch: #f6f1e8;
    --warm: #ede4d3;
    --card: #faf7f2;
    --terra: #b85828;
    --forest: #243d2f;
    --gold: #c8a84a;
    --mid: #7a6e5f;
    --border: rgba(184, 88, 40, 0.13);
    --r: 16px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "DM Sans", sans-serif;
    background: var(--parch);
    color: var(--ink);
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT PANEL */
.left {
    position: relative;
    overflow: hidden;
    background: var(--forest);
}
.left-photo {
    position: absolute;
    inset: 0;
}
.left-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}
.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(36, 61, 47, 0.9) 0%,
        rgba(17, 16, 9, 0.6) 100%
    );
}
.left-content {
    position: relative;
    z-index: 1;
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.left-logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}
.left-logo-gem {
    width: 24px;
    height: 24px;
    background: var(--terra);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.left-mid {
}
.left-mid h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}
.left-mid h1 em {
    font-style: italic;
    color: rgba(200, 168, 74, 0.9);
}
.left-mid p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 360px;
}
.left-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}
.lf-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.left-bottom p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

/* DESTINATIONS MARQUEE */
.dest-strip {
    overflow: hidden;
    margin-top: 28px;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.logo-chip{
  display:inline-flex;
  align-items:center;
  background:rgba(245,240,232,0.14);   /* soft light tint, matches --parch at low opacity */
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(245,240,232,0.18);
  border-radius:14px;
  padding:8px 16px;
}
.logo-chip .logo-svg{
  color:#1A1A1A;   /* "Voy" stays dark since the chip gives it a light-enough backdrop */
  display:block;
}


.dest-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: scroll 20s linear infinite;
}
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.dest-tag {
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* RIGHT PANEL */
.right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}
.form-wrap {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}
.form-header h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 6px;
}
.form-header p {
    font-size: 0.84rem;
    color: var(--mid);
}

/* TABS */
.auth-tabs {
    display: flex;
    background: var(--warm);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
    margin-bottom: 28px;
}
.auth-tab {
    flex: 1;
    padding: 9px;
    border-radius: 9px;
    border: none;
    font-family: "DM Sans", sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--mid);
    background: transparent;
}
.auth-tab.on {
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 1px 8px rgba(17, 16, 9, 0.08);
}

/* SOCIAL BTNS */
.social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-social {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--card);
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-social:hover {
    border-color: var(--terra);
    background: rgba(184, 88, 40, 0.03);
    transform: translateY(-1px);
}
.btn-social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* DIVIDER */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--warm);
}
.divider-text {
    font-size: 0.74rem;
    color: var(--mid);
    white-space: nowrap;
}

/* FORM */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mid);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--warm);
    border-radius: 12px;
    background: var(--parch);
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: var(--terra);
    box-shadow: 0 0 0 3px rgba(184, 88, 40, 0.08);
}
.form-input-wrap {
    position: relative;
}
.input-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid);
    font-size: 0.9rem;
}

.forgot {
    text-align: right;
    margin-top: 6px;
}
.forgot a {
    font-size: 0.76rem;
    color: var(--terra);
    text-decoration: none;
}
.forgot a:hover {
    text-decoration: underline;
}

.btn-main {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: var(--terra);
    color: #fff;
    border: none;
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-main:hover {
    background: var(--forest);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 88, 40, 0.25);
}

/* REGISTER EXTRAS */
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.terms-note {
    font-size: 0.72rem;
    color: var(--mid);
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}
.terms-note a {
    color: var(--terra);
    text-decoration: none;
}
.terms-note a:hover {
    text-decoration: underline;
}

/* SWITCH */
.switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--mid);
}
.switch-text a {
    color: var(--terra);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}
.switch-text a:hover {
    text-decoration: underline;
}

.form-input.is-invalid {
    border-color: var(--terra);
    background: rgba(184, 88, 40, 0.04);
}
.invalid-feedback {
    display: block;
    font-size: 0.74rem;
    color: var(--terra);
    margin-top: 6px;
    line-height: 1.4;
}

/* SUCCESS STATE */
.success-state {
    text-align: center;
    padding: 32px 0;
    display: none;
}
.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.success-state h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 8px;
}
.success-state p {
    font-size: 0.84rem;
    color: var(--mid);
    line-height: 1.6;
}

/* NOTIF */
.notif {
    position: fixed;
    top: 16px;
    right: 16px;
    background: var(--forest);
    color: #fff;
    padding: 11px 17px;
    border-radius: 11px;
    font-size: 0.81rem;
    font-weight: 500;
    box-shadow: 0 6px 24px rgba(17, 16, 9, 0.2);
    z-index: 300;
    display: none;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* LOADING */
.loading-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}
.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.4;
    animation: pop 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}
@keyframes pop {
    0%,
    80%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }
    .left {
        display: none;
    }
    .right {
        padding: 32px 24px;
    }
}
