* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 560px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 20px;
}

/* 左侧品牌区 - 风景卡片 */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: white;
}

.login-left .landscape-section {
    position: relative;
    width: 100%;
    height: 70%;
    overflow: hidden;
    flex-shrink: 0;
}

.login-left .landscape-section * {
    position: absolute;
}

.login-left .sky {
    width: 100%;
    height: 100%;
    background: rgb(175, 243, 230);
    background: linear-gradient(0deg, rgba(175, 243, 230, 1) 0%, rgba(65, 131, 170, 1) 100%);
}

.login-left .moon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0px 0px 10px white);
}

.login-left .shine-1 {
    width: 134%;
    height: 134%;
    border-radius: 50%;
    background-color: #b6ebe7;
    opacity: 0.3;
}

.login-left .shine-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118%;
    height: 118%;
    border-radius: 50%;
    background-color: #b6e8eb;
}

.login-left .real-moon {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
}

.login-left .moon-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: -25%;
    right: -25%;
    background-color: #b6e8eb;
}

.login-left .ocean {
    overflow: hidden;
    bottom: 0;
    width: 100%;
    height: 28%;
    background: rgb(140, 232, 225);
    background: linear-gradient(0deg, rgba(140, 232, 225, 1) 0%, rgba(141, 233, 221, 1) 100%);
    z-index: 2;
    opacity: 0.65;
}

.login-left .reflection {
    position: absolute;
    background-color: white;
    opacity: 0.5;
    z-index: 1;
}

.login-left .reflection:nth-child(1) {
    width: 40px;
    height: 10px;
    clip-path: polygon(0% 0%, 100% 0%, 50% 20%);
    top: 5%;
    left: 32%;
}

.login-left .reflection:nth-child(2) {
    width: 80px;
    height: 15px;
    clip-path: polygon(0% 0%, 100% 0%, 60% 20%, 40% 20%);
    top: 15%;
    left: 39%;
}

.login-left .reflection:nth-child(3) {
    width: 60px;
    height: 2px;
    clip-path: polygon(0% 50%, 40% 0%, 60% 0%, 100% 50%, 60% 100%, 40% 100%);
    top: 27%;
    right: 15%;
}

.login-left .reflection:nth-child(4) {
    width: 70px;
    height: 2px;
    clip-path: polygon(0% 50%, 40% 0%, 60% 0%, 100% 50%, 60% 100%, 40% 100%);
    top: 37%;
    right: 28%;
}

.login-left .reflection:nth-child(5) {
    width: 70px;
    height: 3px;
    clip-path: polygon(0% 50%, 40% 0%, 60% 0%, 100% 50%, 60% 100%, 40% 100%);
    top: 46%;
    right: 8%;
}

.login-left .shadow-hill-1 {
    right: -25%;
    top: -30%;
    width: 150px;
    height: 40px;
    border-radius: 50%;
    background-color: #88d8d7;
    opacity: 1;
}

.login-left .shadow-hill-2 {
    right: -36%;
    top: -65%;
    width: 150px;
    height: 80px;
    border-radius: 50%;
    background-color: #73c8cf;
    opacity: 1;
}

.login-left .hill-1 {
    right: -1%;
    bottom: 28%;
    width: 150px;
    height: 40px;
    border-radius: 50%;
    background-color: #4bcacc;
    z-index: 1;
    transform: translateY(50%);
}

.login-left .hill-2 {
    right: -8%;
    bottom: 28%;
    width: 150px;
    height: 80px;
    border-radius: 50%;
    background-color: #3f85a8;
    z-index: 1;
    transform: translateY(50%);
}

.login-left .hill-3 {
    left: -15%;
    bottom: -15%;
    width: 350px;
    height: 150px;
    border-radius: 50%;
    background-color: #47567f;
    z-index: 3;
}

.login-left .hill-4 {
    right: -15%;
    bottom: -20%;
    width: 350px;
    height: 150px;
    border-radius: 50%;
    background-color: #4a4973;
    z-index: 3;
}

.login-left .tree-1 {
    bottom: 16%;
    left: 3%;
    width: 50px;
    height: 70px;
    z-index: 3;
}

.login-left .tree-2 {
    bottom: 16%;
    left: 25%;
    width: 50px;
    height: 70px;
    z-index: 3;
}

.login-left .tree-3 {
    bottom: 13%;
    right: 1%;
    width: 65px;
    height: 80px;
    z-index: 3;
}

.login-left .filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 40%);
    z-index: 5;
    opacity: 0.2;
}

.login-left .weather-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    padding: 20px 25px;
    color: white;
    z-index: 10;
    box-sizing: border-box;
}

.login-left .weather-info .left-side {
    width: 20%;
    font-size: 11pt;
    font-weight: 600;
    align-self: baseline;
    text-align: center;
}

.login-left .weather-info .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left .weather-info .icon svg {
    width: 40px;
}

.login-left .weather-info .right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.login-left .weather-info .right-side p:nth-child(2) {
    font-size: 9pt;
    margin: 0;
    padding: 0;
}

.login-left .weather-info .location {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 0;
    margin: 0;
}

.login-left .weather-info .location span {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
}

.login-left .weather-info .location svg {
    width: 14px;
    height: auto;
}

.login-left .temperature {
    font-size: 20pt;
    font-weight: 700;
    line-height: 30px;
}

.login-left .content-section {
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    flex-shrink: 0;
}

.login-left .forecast {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
    width: 100%;
    padding: 10px 25px;
    box-sizing: border-box;
}

.login-left .forecast > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7b8d;
    font-size: 9pt;
}

.login-left .forecast .separator {
    width: 100%;
    height: 1px;
    background-color: rgb(233, 233, 233);
    border-radius: 1px;
}

/* ===== 日夜间切换 ===== */
.login-left .celestial-body {
    position: absolute;
    width: 45px;
    height: 45px;
    bottom: 40%;
    left: 23%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 默认（夜间）：月亮显示，太阳隐藏 */
.login-left .sun {
    display: none;
}
.login-left .moon {
    display: flex;
}

/* 白天模式 - 太阳显示，月亮隐藏 */
.login-left.day-mode .moon {
    display: none;
}
.login-left.day-mode .sun {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0px 0px 15px #ffeb8a);
}
.login-left.day-mode .sun-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff8d6;
}
.login-left.day-mode .sun-glow-1 {
    position: absolute;
    width: 134%;
    height: 134%;
    border-radius: 50%;
    background-color: #ffeb8a;
    opacity: 0.5;
}
.login-left.day-mode .sun-glow-2 {
    position: absolute;
    width: 118%;
    height: 118%;
    border-radius: 50%;
    background-color: #fff5b8;
    opacity: 0.7;
}

/* 白天模式 - 天空：暖色调渐变（黄粉） */
.login-left.day-mode .sky {
    background: rgb(247, 225, 87);
    background: linear-gradient(0deg, rgba(247, 225, 87, 1) 0%, rgba(233, 101, 148, 1) 100%);
}

/* 白天模式 - 海面：暖金色 */
.login-left.day-mode .ocean {
    background: rgb(241, 192, 125);
    background: linear-gradient(0deg, rgba(241, 192, 125, 1) 0%, rgba(247, 218, 150, 1) 100%);
    opacity: 1;
}

/* 白天模式 - 海面山丘阴影 */
.login-left.day-mode .shadow-hill-1 {
    background-color: #f1c7a0;
}
.login-left.day-mode .shadow-hill-2 {
    background-color: #e5bb96;
}

/* 白天模式 - 远处山丘 */
.login-left.day-mode .hill-1 {
    background-color: #e6b29d;
}
.login-left.day-mode .hill-2 {
    background-color: #c29182;
}

/* 白天模式 - 近处山丘 */
.login-left.day-mode .hill-3 {
    background-color: #b77873;
}
.login-left.day-mode .hill-4 {
    background-color: #a16773;
}

/* 白天模式 - 树（通过CSS覆盖SVG fill） */
.login-left.day-mode .tree-1 svg,
.login-left.day-mode .tree-1 svg path {
    fill: #b77873;
    stroke: #b77873;
}
.login-left.day-mode .tree-2 svg,
.login-left.day-mode .tree-2 svg path {
    fill: #b77873;
    stroke: #b77873;
}
.login-left.day-mode .tree-3 svg,
.login-left.day-mode .tree-3 svg path {
    fill: #a16773;
    stroke: #a16773;
}

/* 白天模式 - 覆盖层变淡 */
.login-left.day-mode .filter-overlay {
    opacity: 0.1;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 40%);
}

/* 重置 weather-info 内部元素的定位，让 flex 布局正常工作 */
.login-left .weather-info,
.login-left .weather-info * {
    position: static;
}
.login-left .weather-info {
    position: absolute;
}
.login-left .weather-info .icon {
    display: flex;
}
.login-left .weather-info .location {
    display: flex;
}

.login-left-inner {
    padding: 60px 50px;
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-brand-desc {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.95;
    margin-top: 40px;
    max-width: 360px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 右侧表单区 */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.login-right-inner {
    width: 100%;
    max-width: 380px;
    padding: 50px 40px;
}

.login-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.login-page-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.login-register-link {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.login-register-link a {
    color: var(--login-primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.login-register-link a:hover {
    color: var(--login-primary);
    text-decoration: underline;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    color: #333;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--login-primary);
    box-shadow: 0 0 0 3px rgba(123, 182, 240, 0.15);
}

.form-input::placeholder {
    color: #b0b0b0;
}

.form-input-lg {
    padding: 12px 16px;
    font-size: 15px;
    height: 48px;
}

/* 验证码 */
.captcha-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.captcha-group .captcha-input {
    flex: 1;
}

.captcha-img {
    width: 110px;
    height: 48px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #dcdfe6;
}

/* 记住我 */
.login-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.remember-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--login-primary);
}

.remember-container label {
    color: #666;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 46px;
    background: var(--login-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-login:hover {
    background: var(--login-primary-dark);
}

.btn-login:active {
    transform: scale(0.99);
}

/* 底部链接 */
.login-bottom-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
}

.login-bottom-links a {
    color: var(--login-primary-dark);
    text-decoration: none;
}

.login-bottom-links a:hover {
    color: var(--login-primary);
    text-decoration: underline;
}

/* 警告框 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    background: #fff0f0;
    color: #e53935;
    border: 1px solid #ffcdd2;
}

.password-strength-hint {
    margin-top: 8px;
    font-size: 12px;
}

.password-strength-hint p {
    margin: 4px 0;
    color: #666;
}

.password-strength-hint span {
    color: #ef4444;
}

.password-strength-hint span.optional {
    color: #666;
}

@media (max-width: 768px) {
    .login-body {
        padding: 0;
        background: white;
        align-items: flex-start;
    }

    .login-wrapper {
        flex-direction: column;
        max-width: 100%;
        min-height: 100vh;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-left {
        flex: none;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        order: 2;
    }

    /* 手机端隐藏整个风景区域（weather-info 隐藏后会留白），
       只保留底部 fixed 定位的 forecast */
    .login-left .landscape-section {
        display: none;
    }

    .login-left .content-section {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: auto;
        background: white;
        z-index: auto;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    }

    .login-left .forecast {
        flex-direction: row;
        padding: 12px 20px;
        gap: 0;
    }

    .login-left .forecast > div {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 8pt;
    }

    .login-left .forecast .separator {
        width: 1px;
        height: 24px;
        flex-shrink: 0;
    }

    .login-left-inner {
        padding: 30px 24px;
        min-height: auto;
        justify-content: center;
    }

    .login-brand {
        gap: 10px;
    }

    .login-brand-logo svg {
        width: 40px;
        height: 40px;
    }

    .login-brand-name {
        font-size: 24px;
    }

    .login-brand-desc {
        font-size: 14px;
        margin-top: 16px;
    }

    .login-right {
        flex: 1;
        align-items: flex-start;
        order: 1;
    }

    .login-right-inner {
        padding: 150px 20px 24px;
        max-width: 100%;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-page-title {
        font-size: 22px;
    }

    .form-input-lg {
        height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }

    /* 手机端"记住我"复选框缩小 */
    .remember-container input[type="checkbox"] {
        width: 12px !important;
        height: 12px !important;
        transform: scale(0.75);
        transform-origin: center;
    }

    .remember-container {
        gap: 6px;
    }

    .remember-container label {
        font-size: 12px;
    }

    .btn-login {
        height: 44px;
        font-size: 15px;
    }

    .register-right-inner {
        padding: 24px 18px;
    }

    .register-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .login-left-inner {
        padding: 30px 24px;
    }

    .login-brand-name {
        font-size: 22px;
    }

    .login-brand-desc {
        font-size: 14px;
    }

    .login-right-inner {
        padding: 150px 20px 24px;
    }

    .login-page-title {
        font-size: 22px;
    }

    .form-input-lg {
        height: 46px;
    }

    /* 手机端"记住我"复选框缩小 */
    .remember-container input[type="checkbox"] {
        width: 12px !important;
        height: 12px !important;
        transform: scale(0.75);
        transform-origin: center;
    }

    .remember-container {
        gap: 6px;
    }

    .remember-container label {
        font-size: 12px;
    }
}
