/* login.php — static CSS (no local build) */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #EFF6FF;
    --accent: #38BDF8;
    --danger: #EF4444;
    --success: #10B981;
    --ink: #0F172A;
    --muted: #64748B;
    --line: #DDE7F3;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #FFFFFF;
    --shadow-xl: 0 30px 90px rgba(15, 23, 42, 0.28);
    --login-bg: none;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(8, 20, 42, 0.78), rgba(14, 116, 144, 0.42)),
        var(--login-bg) center / cover fixed no-repeat;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.38), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(59, 130, 246, 0.26), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.5));
}

body::after {
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(6px);
}

.lang-switch-wrap {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 20;
}

.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.25rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-white { color: #fff; }
.opacity-90 { opacity: 0.9; }
.opacity-50 { opacity: 0.5; }
.font-medium { font-weight: 500; }
a.hover\:underline:hover,
a.hover\:opacity-100:hover {
    text-decoration: underline;
    opacity: 1;
}

.text-shadow {
    text-shadow: 0 8px 22px rgba(15, 23, 42, 0.38);
}

.auth-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card,
.login-split-container {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: var(--panel);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-card {
    max-width: 470px;
    overflow: hidden;
    border-radius: 28px;
}

.auth-header {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(14, 165, 233, 0.86)),
        var(--login-bg) center / cover no-repeat;
}

.auth-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.18));
}

.auth-header h1,
.auth-header p {
    position: relative;
    z-index: 1;
}

.auth-header h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 0 0 0.55rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-header h1 i,
.form-side-header i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-logo {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.form-side-header .brand-logo {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18), inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.auth-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.auth-body {
    padding: 1.8rem;
}

.login-split-container {
    display: none;
}

.form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 3.3rem);
    background: rgba(255, 255, 255, 0.9);
}

.form-side-header {
    margin-bottom: 1.45rem;
}

.form-side-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.45rem;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--ink);
}

.form-side-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.form-side-header i {
    flex: 0 0 auto;
    color: var(--primary);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.login-type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    padding: 0.38rem;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #F1F5F9;
}

.type-btn {
    border: 0;
    border-radius: 14px;
    padding: 0.78rem 0.75rem;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.type-btn i {
    margin-right: 0.45rem;
}

.type-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.72);
}

.type-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 0.86rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: rgba(248, 250, 252, 0.95);
    font-size: 0.98rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: #94A3B8;
}

.form-control:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.58);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.form-check-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.92rem;
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    width: 1.08rem;
    height: 1.08rem;
    border-color: #CBD5E1;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-card .btn,
.form-side .btn {
    width: 100%;
    min-height: 50px;
    padding: 0.86rem 1rem;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-card .btn:hover,
.form-side .btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(37, 99, 235, 0.36);
    filter: saturate(1.05);
}

.auth-card .btn:active,
.form-side .btn:active {
    transform: translateY(0);
}

.auth-card .btn:disabled,
.form-side .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.error-messages,
.success-message,
.ban-notice {
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
}

.error-messages {
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(254, 242, 242, 0.92);
}

.error-messages p {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    margin: 0.35rem 0;
    color: #B91C1C;
    font-size: 0.92rem;
}

.success-message {
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #047857;
    background: rgba(236, 253, 245, 0.94);
}

.ban-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: 1px solid rgba(251, 146, 60, 0.22);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 251, 235, 0.78));
}

.ban-notice i {
    color: #F97316;
    margin-top: 0.18rem;
}

.ban-notice p {
    margin: 0;
    color: #9A3412;
    font-size: 0.86rem;
    line-height: 1.6;
}

.risk-verify-notice {
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.78));
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.risk-verify-notice i {
    color: var(--primary);
    margin-top: 0.18rem;
}

.risk-verify-notice p {
    margin: 0;
    color: #1E3A8A;
    font-size: 0.86rem;
    line-height: 1.6;
}

.sms-code-row {
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.sms-code-row .form-control {
    flex: 1;
}

.btn-send-code {
    flex-shrink: 0;
    min-width: 7.5rem;
    border: 1px solid var(--line);
    background: var(--panel-strong);
    color: var(--ink);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-send-code:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.btn-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ajax-msg {
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    font-size: 0.86rem;
}

.ajax-msg.error {
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: rgba(254, 242, 242, 0.92);
    color: #B91C1C;
}

.ajax-msg.success {
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(236, 253, 245, 0.92);
    color: #047857;
}

.geetest-wrap {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 1rem;
    border-radius: 16px;
}

.geetest-wrap > * {
    width: 100% !important;
}

.geetest-loading {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px dashed #BFDBFE;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(239, 246, 255, 0.72);
    font-size: 0.9rem;
}

.geetest-loading.error {
    border-color: rgba(239, 68, 68, 0.28);
    color: #B91C1C;
    background: rgba(254, 242, 242, 0.88);
}

.geetest-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 1px solid #BFDBFE;
    border-radius: 16px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.86));
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.geetest-button:hover {
    border-color: rgba(37, 99, 235, 0.42);
    background: #EFF6FF;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.geetest-button.verified {
    border-color: rgba(16, 185, 129, 0.28);
    color: #047857;
    background: rgba(236, 253, 245, 0.94);
}

.geetest_panel,
.geetest_popup,
.geetest_box,
.geetest_box_wrap,
.geetest_panel_box {
    z-index: 2147483647 !important;
}

.text-center {
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    text-align: center;
}

.text-center a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.text-center a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.animals-side {
    position: relative;
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 640px;
    padding: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    color: var(--ink);
    background: #ffffff;
    text-align: center;
}

.animals-side::after {
    content: 'SkyPhotos';
    position: absolute;
    left: 50%;
    top: 50%;
    color: rgba(15, 23, 42, 0.03);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    transform: translate(-50%, -50%) rotate(-8deg);
    pointer-events: none;
}

.animals-side-title,
.animals-row {
    position: relative;
    z-index: 1;
}

.animals-side-title {
    max-width: 360px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.07em;
    margin-bottom: 2.5rem;
}

.animals-side-title::after {
    content: '精选航空摄影作品与创作者社区';
    display: block;
    max-width: 290px;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.7;
}

.animals-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    min-height: 220px;
    margin: 0;
    filter: drop-shadow(0 24px 24px rgba(15, 23, 42, 0.2));
}

.geo-animal {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(70px) scale(0.9);
    animation: slide-up 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               gentle-float 4.6s ease-in-out infinite;
}

.geo-animal:nth-child(1) { animation-delay: 0.1s, 0.9s; }
.geo-animal:nth-child(2) { animation-delay: 0.18s, 1.1s; }
.geo-animal:nth-child(3) { animation-delay: 0.26s, 1.3s; }
.geo-animal:nth-child(4) { animation-delay: 0.34s, 1.5s; }

.geo-purple,
.geo-black,
.geo-yellow,
.geo-orange {
    box-shadow: inset 0 -14px 24px rgba(15, 23, 42, 0.13);
}

.geo-purple {
    width: 76px;
    height: 148px;
    border-radius: 20px 20px 0 0;
    background: #3B82F6;
}

.geo-black {
    width: 58px;
    height: 108px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, #334155, #0F172A);
}

.geo-yellow {
    width: 70px;
    height: 96px;
    border-radius: 42px 42px 0 0;
    background: linear-gradient(180deg, #FDE68A, #FBBF24);
}

.geo-orange {
    width: 96px;
    height: 50px;
    border-radius: 56px 56px 0 0;
    background: linear-gradient(180deg, #FDBA74, #FB923C);
}

.geo-face {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.geo-purple .geo-face { top: 29px; }
.geo-black .geo-face { top: 22px; }
.geo-yellow .geo-face { top: 28px; }
.geo-orange .geo-face { top: 14px; }

.geo-eyes {
    display: flex;
    justify-content: center;
}

.geo-purple .geo-eyes { gap: 15px; }
.geo-black .geo-eyes { gap: 9px; }
.geo-yellow .geo-eyes { gap: 22px; }
.geo-orange .geo-eyes { gap: 28px; }

.geo-eye {
    position: relative;
    border-radius: 999px;
    overflow: hidden;
    animation: blink 4s infinite;
}

.geo-purple .geo-eye {
    width: 9px;
    height: 9px;
    background: #fff;
}

.geo-black .geo-eye {
    width: 11px;
    height: 11px;
    background: #fff;
}

.geo-yellow .geo-eye,
.geo-orange .geo-eye {
    width: 7px;
    height: 7px;
    background: #0F172A;
}

.geo-pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    background: #0F172A;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.geo-purple .geo-pupil {
    width: 4px;
    height: 4px;
}

.geo-black .geo-pupil {
    width: 5px;
    height: 5px;
}

.geo-yellow .geo-pupil,
.geo-orange .geo-pupil {
    display: none;
}

.geo-mouth {
    margin-right: auto;
    margin-left: auto;
}

.geo-purple .geo-mouth,
.geo-black .geo-mouth,
.geo-orange .geo-mouth {
    border-bottom-style: solid;
    border-radius: 0 0 999px 999px;
}

.geo-purple .geo-mouth {
    width: 13px;
    height: 7px;
    margin-top: 9px;
    border-bottom-width: 2px;
    border-bottom-color: #fff;
}

.geo-black .geo-mouth {
    width: 9px;
    height: 5px;
    margin-top: 7px;
    border-bottom-width: 2px;
    border-bottom-color: #fff;
}

.geo-yellow .geo-mouth {
    width: 26px;
    height: 3px;
    margin-top: 11px;
    border-radius: 999px;
    background: #0F172A;
}

.geo-orange .geo-mouth {
    width: 11px;
    height: 6px;
    margin-top: 6px;
    border-bottom-width: 2px;
    border-bottom-color: #0F172A;
}

.geo-eye.closed::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
}

.geo-purple .geo-eye.closed,
.geo-black .geo-eye.closed {
    background: #0F172A;
}

.geo-animal:hover {
    animation-play-state: paused;
    transform: translateY(-10px) scale(1.04);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.geo-animal:hover .geo-face {
    animation: wiggle 0.5s ease-in-out;
}

.geo-animal:hover .geo-mouth {
    animation: smile 0.5s ease-in-out;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(-8px) rotate(-1.5deg); }
    70% { transform: translateY(-4px) rotate(1.5deg); }
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

@keyframes wiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-3deg); }
    75% { transform: translateX(-50%) rotate(3deg); }
}

@keyframes smile {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.22); }
}

@media (min-width: 900px) {
    .auth-container {
        padding: clamp(1.25rem, 3vw, 2.5rem);
    }

    .auth-card {
        display: none !important;
    }

    .login-split-container {
        display: flex !important;
        max-width: 1060px;
        min-height: 640px;
        overflow: visible;
        border-radius: 34px;
    }

    .animals-side {
        border-radius: 34px 0 0 34px;
    }

    .form-side {
        border-radius: 0 34px 34px 0;
    }
}

@media (max-width: 899px) {
    .login-split-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-container {
        align-items: flex-start;
        padding-top: 5.5rem;
        padding-bottom: 1.5rem;
    }

    .auth-card {
        max-width: 94vw;
        border-radius: 24px;
    }

    .auth-body {
        padding: 1.35rem;
    }

    .auth-header {
        padding: 1.75rem 1.35rem 1.45rem;
    }

    .auth-header h1 {
        font-size: 1.45rem;
    }

    .login-type-switch {
        border-radius: 16px;
    }

    .type-btn {
        padding: 0.72rem 0.4rem;
        font-size: 0.88rem;
    }
}
