/* =================== ADNEC PARTNER THEME =================== */

:root {
    --color-partner-primary: #26adda;
    --color-partner-dark: #0a1628;
    --color-partner-surface: #f0f8fc;
    --color-cobrand-gradient-start: #0073a4;
    --color-cobrand-gradient-end: #26adda;
}

/* =================== LOGIN PAGE: SPLIT LAYOUT =================== */

.login-page {
    min-height: 100vh;
    display: flex;
}

.login-split-left {
    background: linear-gradient(160deg, #0073a4 0%, #1a8ac0 40%, #26adda 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.login-split-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.04;
    pointer-events: none;
}

.login-split-right {
    background: var(--color-partner-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* =================== LOGIN CARD =================== */

.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.1);
    max-width: 440px;
    width: 100%;
    padding: 2.5rem;
}

/* =================== LOGIN FORM INPUTS =================== */

.login-input-group {
    margin-bottom: 1.25rem;
}

.login-input-group label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555555;
    margin-bottom: 0.5rem;
}

.login-input-box {
    background-color: white;
    height: 3.25rem;
    padding: 0 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #E5E7EB;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.login-input-box:focus-within {
    border-color: #0073a4;
    box-shadow: 0 0 0 3px rgba(0, 115, 164, 0.1);
}

.login-input-box.is-valid {
    border-color: #22c55e;
}

.login-input-box.is-invalid {
    border-color: #ef4444;
}

.login-input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    color: #1A1A1A;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: "Raleway", sans-serif;
}

.login-input-box input::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}

.login-input-box .input-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: #9CA3AF;
    margin-right: 0.75rem;
}

.login-input-box:focus-within .input-icon {
    color: #0073a4;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0.25rem;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #0073a4;
}

/* =================== LOGIN TABS =================== */

.login-tab {
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.login-tab.active {
    background: white;
    color: #0073a4;
    box-shadow: 0 4px 20px -5px rgba(0, 115, 164, 0.15);
}

/* =================== LOGIN BUTTON =================== */

.login-btn-primary {
    width: 100%;
    height: 3.25rem;
    background: #0073a4;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: "Raleway", sans-serif;
    box-shadow: 0 4px 15px -3px rgba(0, 115, 164, 0.3);
}

.login-btn-primary:hover {
    background: #26a69a;
    box-shadow: 0 6px 20px -3px rgba(38, 166, 154, 0.4);
    transform: translateY(-1px);
}

.login-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-btn-primary .spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================== DOMAIN VALIDATION FEEDBACK =================== */

.domain-feedback {
    font-size: 0.6875rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    transition: all 0.2s;
}

.domain-feedback.valid {
    color: #22c55e;
}

.domain-feedback.invalid {
    color: #ef4444;
}

/* =================== MAGIC LINK SENT STATE =================== */

.magic-link-sent {
    text-align: center;
    padding: 1.5rem 0;
}

.envelope-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, #0073a4, #26adda);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.envelope-icon-wrapper i {
    color: white;
    width: 2.25rem;
    height: 2.25rem;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(38, 173, 218, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px 10px rgba(38, 173, 218, 0.15);
    }
}

/* Verifying state */
.verifying-state {
    text-align: center;
    padding: 3rem 1rem;
}

.verifying-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #E5E7EB;
    border-top-color: #0073a4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

/* =================== ERROR / SUCCESS ALERTS =================== */

.login-alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.login-alert.hidden {
    display: none;
}

.login-alert.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.login-alert.success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.login-alert.info {
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
}

/* =================== PARTNER TOP BAR =================== */

.partner-top-bar {
    background-color: var(--color-partner-dark);
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    z-index: 61;
}

.partner-top-bar img {
    height: 14px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.partner-top-bar .partnership-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0.75rem;
}

.partner-top-bar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.partner-top-bar .user-info .user-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.partner-top-bar .logout-btn {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    font-family: "Raleway", sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.partner-top-bar .logout-btn:hover {
    color: white;
}

/* =================== PARTNER HEADER =================== */

.partner-header {
    background: linear-gradient(135deg,
        var(--color-cobrand-gradient-start) 0%,
        var(--color-cobrand-gradient-end) 100%);
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 60;
}

.partner-header .partner-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.partner-header .partner-nav a:hover,
.partner-header .partner-nav a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* =================== PARTNER BADGE =================== */

.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--color-partner-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
}

/* =================== PARTNER PRICING =================== */

.partner-price {
    color: var(--color-partner-primary);
    font-weight: 800;
    font-size: 1.25rem;
}

.partner-price-label {
    color: var(--color-partner-primary);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =================== PARTNER HERO =================== */

.partner-hero {
    position: relative;
    overflow: visible; /* Allow autocomplete dropdowns & traveler popovers to extend beyond hero */
    padding: 0;
}

.partner-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(0, 115, 164, 0.88) 0%,
        rgba(26, 138, 192, 0.75) 40%,
        rgba(38, 173, 218, 0.85) 100%);
}

.partner-hero-content {
    position: relative;
    z-index: 2;
}

/* Hero search widget inside the hero */
.partner-hero .search-input-box {
    background: white;
    border-color: #E5E7EB;
}

.partner-hero .search-input-box:focus-within {
    border-color: var(--color-partner-primary);
    box-shadow: 0 0 0 3px rgba(38, 173, 218, 0.15);
}

/* =================== PARTNER BENEFIT ICON =================== */

.partner-benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px -3px rgba(38, 173, 218, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-partner-primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.group:hover .partner-benefit-icon {
    transform: scale(1.1);
}

/* =================== RESPONSIVE =================== */

@media (max-width: 1023px) {
    .login-page {
        flex-direction: column;
        min-height: 100dvh;
        background: var(--color-partner-surface);
    }

    .login-split-left {
        min-height: auto;
        padding: 1.5rem 1.5rem 2.5rem;
        flex-shrink: 0;
    }

    .login-split-right {
        flex: 1 1 auto;
        padding: 0 1.5rem 2rem;
        align-items: flex-start;
        background: transparent;
    }

    .login-card {
        max-width: 100%;
        border-radius: 1.25rem;
        margin-top: -1.5rem;
        position: relative;
        z-index: 1;
    }

    .partner-top-bar {
        padding: 0 1rem;
    }
}

@media (max-width: 639px) {
    .login-split-left {
        min-height: auto;
        padding: 1.25rem 1.25rem 1.75rem;
    }

    .login-card {
        padding: 1.75rem 1.25rem;
    }

    .partner-top-bar {
        font-size: 0.625rem;
        height: 2rem;
        padding: 0 0.75rem;
    }

    .partner-top-bar img {
        height: 12px;
    }

    .partner-top-bar .partnership-text {
        font-size: 0.5625rem;
        margin: 0 0.5rem;
    }

    .partner-top-bar .user-info {
        gap: 0.5rem;
    }

    .partner-header {
        padding: 0 1rem;
    }

    .partner-header .partner-nav {
        display: none;
    }
}
