/* 登录卡片专用样式 */
:root {
    --sage-dark: #626F47;
    --sage-light: #A4B465;
    --cream: #F5ECD5;
    --warm-orange: #F0BB78;
}

/* 登录卡片主体 - 降低亮度 */
.nomad-auth-card {
    background: rgba(250, 248, 243, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(200, 195, 180, 0.3) inset;
    border: 1px solid rgba(200, 195, 180, 0.4);
    position: relative;
    z-index: 10000;
    transition: transform 0.3s ease;
}

/* 输入框样式 */
.nomad-input-group {
    margin-bottom: 16px;
}

.nomad-input-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sage-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.nomad-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nomad-input-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--sage-light);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.nomad-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 2px solid rgba(164, 180, 101, 0.25);
    border-radius: 10px;
    font-size: 0.85rem;
    background: rgba(245, 236, 213, 0.25);
    color: var(--sage-dark);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.nomad-input::placeholder {
    color: var(--sage-light);
}

.nomad-input:focus {
    border-color: var(--warm-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(240, 187, 120, 0.15);
}

.nomad-input:focus+.nomad-input-icon,
.nomad-input-wrapper:focus-within .nomad-input-icon {
    color: var(--warm-orange);
}

/* 按钮样式 - 带流光效果 */
.nomad-btn {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    background: var(--sage-dark);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.nomad-btn:hover {
    transform: scale(1.01);
    background: var(--sage-light);
    box-shadow: 0 8px 25px rgba(98, 111, 71, 0.35);
}

.nomad-btn:active {
    transform: scale(0.98);
}

/* 流光效果 */
.nomad-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 187, 120, 0.4), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}


/* 标签切换 */
.nomad-tabs {
    display: flex;
    background: rgba(245, 236, 213, 0.5);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 28px;
}

.nomad-tab {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--sage-light);
    background: transparent;
    text-decoration: none;
}

.nomad-tab.active {
    background: white;
    color: var(--sage-dark);
    box-shadow: 0 2px 8px rgba(98, 111, 71, 0.15);
}

.nomad-tab:hover:not(.active) {
    color: var(--sage-dark);
}

/* 复选框样式 */
.nomad-checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    font-size: 0.8rem;
}

.nomad-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sage-dark);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.nomad-checkbox-label:hover {
    color: var(--sage-light);
}

.nomad-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--warm-orange);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.nomad-link {
    color: var(--sage-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nomad-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--warm-orange);
    transition: width 0.3s;
}

.nomad-link:hover {
    color: var(--warm-orange);
}

.nomad-link:hover::after {
    width: 100%;
}

/* 错误/成功提示 */
.nomad-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.nomad-alert.error {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.nomad-alert.success {
    background: rgba(164, 180, 101, 0.15);
    color: var(--sage-dark);
    border: 1px solid rgba(164, 180, 101, 0.3);
}

/* 视差背景 */
#parallax-map-bg {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    z-index: 0;
}

/* 页头样式 - 横排布局 */
.nomad-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.nomad-logo {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.nomad-header-text {
    text-align: left;
}

.nomad-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--sage-dark);
    margin: 0 0 2px 0;
}

.nomad-subtitle {
    color: var(--sage-light);
    font-size: 0.8rem;
    margin: 0;
}

/* 底部提示 */
.nomad-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--sage-light);
}

.nomad-footer a {
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.nomad-footer a:hover {
    color: var(--warm-orange);
}

/* ================== Vaporous Dissolve Animation ================== */
@keyframes vaporize {
    0% {
        filter: blur(0px);
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        filter: blur(40px);
        opacity: 0;
        transform: translateY(-80px) scale(1.1);
    }
}

.vaporizing {
    animation: vaporize 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 24px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon-container {
    background: #626F47;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5) rotate(-45deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-overlay.active .success-icon-container {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.success-check-icon {
    font-size: 40px;
    color: white;
}