/* CSS变量定义 */
:root {
    --primary-color: #a8e6cf;
    --secondary-color: #dcedc1;
    --accent-color: #8cd8bc;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --background-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --border-radius: 14px;
    --transition: all 0.3s;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 浮动背景元素 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    opacity: 0.7;
}

.paw {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.paw i {
    color: var(--primary-color);
    font-size: 20px;
}

.bone {
    width: 50px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bone i {
    color: var(--primary-color);
    font-size: 14px;
}

.fish {
    width: 45px;
    height: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50% 20% 20% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish i {
    color: var(--primary-color);
    font-size: 14px;
}

.container {
    width: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    box-sizing: border-box;
}

.dog-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-right: 40px;
}

.dog-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
    margin-left: 80px;
}

.dog-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
    max-width: 400px;
    margin-left: 80px;
    margin-bottom: 50px;
}

.main {
    position: relative;
    display: flex;
    align-items: center;
}

.dog {
    position: relative;
    width: 20vmax;
    height: 8vmax;
}

.dog::before {
    content: "";
    position: absolute;
    bottom: -0.75vmax;
    right: -0.15vmax;
    width: 100%;
    height: 1.5vmax;
    background-color: #88b8a0;
    border-radius: 50%;
    z-index: -1000;
    animation: shadow 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__head {
    position: absolute;
    left: 4.5vmax;
    bottom: 0;
    width: 8vmax;
    height: 5vmax;
    border-top-left-radius: 4.05vmax;
    border-top-right-radius: 4.05vmax;
    border-bottom-right-radius: 3.3vmax;
    border-bottom-left-radius: 3.3vmax;
    background: linear-gradient(to bottom, #e8b998, #d6a582);
    animation: head 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__head-c {
    position: absolute;
    left: 1.5vmax;
    bottom: 0;
    width: 9.75vmax;
    height: 8.25vmax;
    animation: head 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
    z-index: -1;
}

.dog__snout {
    position: absolute;
    left: -1.5vmax;
    bottom: 0;
    width: 7.5vmax;
    height: 3.75vmax;
    border-top-right-radius: 3vmax;
    border-bottom-right-radius: 3vmax;
    border-bottom-left-radius: 4.5vmax;
    background: linear-gradient(to bottom, #f7e8d4, #f2dfc6);
    animation: snout 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__snout::before {
    content: "";
    position: absolute;
    left: -0.1125vmax;
    top: -0.15vmax;
    width: 1.875vmax;
    height: 1.125vmax;
    border-top-right-radius: 3vmax;
    border-bottom-right-radius: 3vmax;
    border-bottom-left-radius: 4.5vmax;
    background: linear-gradient(to bottom, #6a5240, #5a4535);
    animation: snout-b 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__nose {
    position: absolute;
    top: -1.95vmax;
    left: 40%;
    width: 0.75vmax;
    height: 2.4vmax;
    border-radius: 0.525vmax;
    transform-origin: bottom;
    transform: rotateZ(10deg);
    background: linear-gradient(to bottom, #c8ccc5, #e0e4db);
}

.dog__eye-l,
.dog__eye-r {
    position: absolute;
    top: -0.9vmax;
    width: 0.675vmax;
    height: 0.375vmax;
    border-radius: 50%;
    background-color: #2a3c3b;
    animation: eye 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__eye-l {
    left: 27%;
}

.dog__eye-r {
    left: 65%;
}

.dog__ear-l,
.dog__ear-r {
    position: absolute;
    width: 5vmax;
    height: 3.3vmax;
    border-top-left-radius: 3.3vmax;
    border-top-right-radius: 3vmax;
    border-bottom-right-radius: 5vmax;
    border-bottom-left-radius: 5vmax;
    background: linear-gradient(to bottom, #e8b998, #d6a582);
}

.dog__ear-l {
    top: 1.5vmax;
    left: 10vmax;
    transform-origin: bottom left;
    transform: rotateZ(-50deg);
    z-index: -1;
    animation: ear-l 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__ear-r {
    top: 1.5vmax;
    right: 3vmax;
    transform-origin: bottom right;
    transform: rotateZ(25deg);
    z-index: -2;
    animation: ear-r 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__body {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    bottom: 0.3vmax;
    left: 6vmax;
    width: 18vmax;
    height: 4vmax;
    border-top-left-radius: 3vmax;
    border-top-right-radius: 6vmax;
    border-bottom-right-radius: 1.5vmax;
    border-bottom-left-radius: 6vmax;
    background: linear-gradient(to bottom, #8c5c3a, #a06d47);
    z-index: -2;
    animation: body 10s cubic-bezier(0.3, 0.41, 0.18, 1.01) infinite;
}

.dog__tail {
    position: absolute;
    top: 20px;
    right: -1.5vmax;
    height: 3vmax;
    width: 4vmax;
    background: linear-gradient(to bottom, #8c5c3a, #a06d47);
    border-radius: 1.5vmax;
    transform-origin: left center;
    animation: tail-wag 3s ease-in-out infinite;
}

.dog__paws {
    position: absolute;
    bottom: 0;
    left: 7.5vmax;
    width: 10vmax;
    height: 3vmax;
}

.leg {
    position: absolute;
    bottom: 0;
    width: 2vmax;
    height: 2.125vmax;
}

.paw {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 1.95vmax;
    height: 1.8vmax;
    overflow: hidden;
}

.paw::before {
    content: "";
    position: absolute;
    width: 5vmax;
    height: 3vmax;
    border-radius: 50%;
}

.top {
    position: absolute;
    bottom: 0;
    left: 0.75vmax;
    height: 4.5vmax;
    width: 2.625vmax;
    border-top-left-radius: 1.425vmax;
    border-top-right-radius: 1.425vmax;
    transform-origin: bottom right;
    transform: rotateZ(90deg) translateX(-0.1vmax) translateY(1.5vmax);
    z-index: -1;
    background-image: linear-gradient(70deg, transparent 20%, #e8b998 20%);
}

.dog__bl-leg {
    left: -3vmax;
    z-index: -10;
}

.dog__bl-paw::before {
    background: linear-gradient(to bottom, #fff9e0, #f5f0d5);
}

.dog__bl-top {
    background-image: linear-gradient(80deg, transparent 20%, #e8b998 20%);
}

.dog__fl-leg {
    z-index: 10;
    left: 0;
}

.dog__fl-paw::before {
    background: linear-gradient(to bottom, #fff9e0, #f5f0d5);
}

.dog__fr-leg {
    right: 0;
}

.dog__fr-paw::before {
    background: linear-gradient(to bottom, #fff9e0, #f5f0d5);
}

.decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -10;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    top: 60%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 40px;
    height: 40px;
    left: 80%;
    top: 30%;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 70%;
    top: 70%;
    animation-delay: 3s;
}

.card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px 30px;
    box-shadow:
        0 20px 40px rgba(168, 230, 207, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    margin-right: 80px;
}

/* 波浪顶部设计 */
.wave-top {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.wave-top svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: var(--background-gradient);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(168, 230, 207, 0.5);
}

.logo-icon i {
    font-size: 36px;
    color: var(--white);
}

.logo h1 {
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.logo p {
    color: var(--light-text);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #f0f0f0;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: #fafafa;
    color: var(--text-color);
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(168, 230, 207, 0.2);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.input-wrapper input:focus + .input-icon {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(168, 230, 207, 0.4);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 230, 207, 0.6);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.login-btn:hover::after {
    transform: rotate(30deg) translate(10%, 10%);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #ccc;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.divider span {
    padding: 0 15px;
}

.wechat-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px;
    border: 2px solid #f0f0f0;
    border-radius: var(--border-radius);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.wechat-login:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.wechat-icon {
    color: #07C160;
    font-size: 20px;
    margin-right: 10px;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--light-text);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

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

/* 狗狗动画关键帧 */
@keyframes head {
    0%,
    65%,
    10%,
    20%,
    26%,
    28%,
    90%,
    100% {
        height: 8.25vmax;
        bottom: 0;
        transform-origin: bottom right;
        transform: rotateZ(0);
    }
    5%,
    15%,
    22%,
    24%,
    30% {
        height: 8.1vmax;
    }
    32%,
    50% {
        height: 8.25vmax;
    }
    55%,
    60% {
        bottom: 0.75vmax;
        transform-origin: bottom right;
        transform: rotateZ(0);
    }
    70%,
    80% {
        bottom: 0.75vmax;
        transform-origin: bottom right;
        transform: rotateZ(10deg);
    }
}

@keyframes body {
    0%,
    10%,
    20%,
    26%,
    28%,
    32%,
    100% {
        height: 7.2vmax;
    }
    5%,
    15%,
    22%,
    24%,
    30% {
        height: 7.05vmax;
    }
}

@keyframes ear-l {
    0%,
    10%,
    20%,
    26%,
    28%,
    82%,
    100% {
        transform: rotateZ(-50deg);
    }
    5%,
    15%,
    22%,
    24% {
        transform: rotateZ(-48deg);
    }
    30%,
    31% {
        transform: rotateZ(-30deg);
    }
    32%,
    80% {
        transform: rotateZ(-60deg);
    }
}

@keyframes ear-r {
    0%,
    10%,
    20%,
    26%,
    28% {
        transform: rotateZ(20deg);
    }
    5%,
    15%,
    22%,
    24% {
        transform: rotateZ(18deg);
    }
    30%,
    31% {
        transform: rotateZ(10deg);
    }
    32% {
        transform: rotateZ(25deg);
    }
}

@keyframes snout {
    0%,
    10%,
    20%,
    26%,
    28%,
    82%,
    100% {
        height: 3.75vmax;
    }
    5%,
    15%,
    22%,
    24% {
        height: 3.45vmax;
    }
}

@keyframes snout-b {
    0%,
    10%,
    20%,
    26%,
    28%,
    98%,
    100% {
        width: 1.875vmax;
    }
    5%,
    15%,
    22%,
    24% {
        width: 1.8vmax;
    }
    34%,
    98% {
        width: 1.275vmax;
    }
}

@keyframes shadow {
    0%,
    10%,
    20%,
    26%,
    28%,
    30%,
    84%,
    100% {
        width: 99%;
    }
    5%,
    15%,
    22%,
    24% {
        width: 101%;
    }
    34%,
    81% {
        width: 96%;
    }
}

@keyframes eye {
    0%,
    30% {
        width: 0.675vmax;
        height: 0.3vmax;
    }
    32%,
    59%,
    90%,
    100% {
        width: 0.525vmax;
        height: 0.525vmax;
        transform: translateY(0);
    }
    60%,
    75% {
        transform: translateY(-0.3vmax);
    }
    80%,
    85% {
        transform: translateY(0.15vmax);
    }
}

@keyframes tail-wag {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }
}

/* 动画效果 */
@keyframes float-element {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-20px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .dog-section {
        padding-right: 0;
    }

    .dog-title {
        font-size: 2rem;
    }

    .dog-subtitle {
        font-size: 1rem;
    }

    .card {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .dog-title {
        font-size: 1.8rem;
    }

    .card {
        padding: 30px 20px 20px;
    }

    .logo h1 {
        font-size: 24px;
    }
}
