:root {
    --google-blue: #1A73E8;
    --google-blue-hover: #1557B0;
    --google-blue-light: #E8F0FE;
    --google-red: #EA4335;
    --google-red-light: #FCE8E6;
    --google-yellow: #FBBC04;
    --google-green: #34A853;
    --google-green-light: #E6F4EA;
    --google-purple: #9C27B0;
    --google-purple-light: #F3E5F5;

    --text-primary: #202124;
    --text-secondary: #5F6368;
    --text-tertiary: #9AA0A6;
    --text-on-primary: #FFFFFF;

    --bg-primary: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-hover: #F1F3F4;
    --bg-focus: #E8F0FE;

    --border-light: #DADCE0;
    --border-medium: #5F6368;
    --border-focus: #1A73E8;
    --border-error: #EA4335;

    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);

    --md-sys-elevation-level0: 0px;
    --md-sys-elevation-level1: 1px;
    --md-sys-elevation-level2: 3px;
    --md-sys-elevation-level3: 6px;
    --md-sys-elevation-level4: 8px;
    --md-sys-elevation-level5: 12px;

    --md-sys-typescale-display-large-font: 'Roboto', 'Noto Sans', sans-serif;
    --md-sys-typescale-display-large-size: 57px;
    --md-sys-typescale-display-large-weight: 400;
    --md-sys-typescale-display-large-line-height: 64px;
    --md-sys-typescale-display-large-tracking: -0.25px;

    --md-sys-typescale-headline-large-font: 'Roboto', 'Noto Sans', sans-serif;
    --md-sys-typescale-headline-large-size: 32px;
    --md-sys-typescale-headline-large-weight: 400;
    --md-sys-typescale-headline-large-line-height: 40px;
    --md-sys-typescale-headline-large-tracking: 0px;

    --md-sys-typescale-title-large-font: 'Roboto', 'Noto Sans', sans-serif;
    --md-sys-typescale-title-large-size: 22px;
    --md-sys-typescale-title-large-weight: 400;
    --md-sys-typescale-title-large-line-height: 28px;
    --md-sys-typescale-title-large-tracking: 0px;

    --md-sys-typescale-body-large-font: 'Roboto', 'Noto Sans', sans-serif;
    --md-sys-typescale-body-large-size: 16px;
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-body-large-line-height: 24px;
    --md-sys-typescale-body-large-tracking: 0.5px;

    --md-sys-typescale-label-large-font: 'Roboto', 'Noto Sans', sans-serif;
    --md-sys-typescale-label-large-size: 14px;
    --md-sys-typescale-label-large-weight: 500;
    --md-sys-typescale-label-large-line-height: 20px;
    --md-sys-typescale-label-large-tracking: 0.1px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background: #E0E8F5;
    display: flex;
    overflow: hidden;
    color: var(--text-primary);
}

.btn, .btn:focus, .btn:active:focus {
    outline: none;
}

.modal-title {
    text-align: center;
}

.left-section, .right-section {
    font-family: var(--md-sys-typescale-body-large-font);
}

.left-section {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5% 4%;
    position: relative;
    overflow: hidden;
    background: #E0E8F5;
    min-height: 100vh;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-primary);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

@media (min-width: 1200px) {
    .content-wrapper {
        transform: translateY(5%);
    }
}

.main-title {
    font-family: var(--md-sys-typescale-display-large-font);
    font-size: 56px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.tagline {
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 1rem;
    color: #2656C9;
}

.svg-container {
    width: 100%;
    height: 60%;
    margin: 1rem auto 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.svg-container:hover {
    transform: scale(1.02);
}

.svg-container object {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.right-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*align-items: center;*/
    padding: 40px;
    background: #E0E8F5;
}

.login-container {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
    border: none;
}

.title-group {
    margin-bottom: 32px;
}

.login-title {
    font-family: var(--md-sys-typescale-title-large-font);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 8px;
    margin-top: 0;
}

.login-subtitle {
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0;
    color: var(--text-tertiary);
    text-align: left;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.form-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--md-sys-typescale-body-large-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.form-input:hover {
    border-color: var(--border-medium);
}

.verification-group {
    display: flex;
    gap: 16px;
    align-items: end;
}

.verification-input {
    flex: 1;
}

.verification-code {
    width: 120px;
    height: 48px;
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    user-select: none;
    overflow: hidden;
}

.verification-code #codeImg {
    width: 100%;
    height: 100%;
}

.verification-code:hover {
    background: var(--google-blue-light);
    border-color: var(--border-focus);
    color: var(--google-blue);
}

.verification-code:active {
    transform: scale(0.98);
}

.button-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.login-button {
    width: 100%;
    min-width: 120px;
    padding: 14px 32px;
    background: #306FDC;
    color: var(--text-on-primary);
    border: none;
    border-radius: 36px;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    background: #1A5BB8;
}

.login-button:active {
    transform: scale(0.98);
}

.download-section.desktop-only {
    position: fixed;
    bottom: 60px;
    right: 40px;
    text-align: center;
    z-index: 10;
}

/* 当窗口高度不够时，调整下载按钮位置 */
@media (max-height: 600px) {
    .download-section.desktop-only {
        position: static;
        margin: 20px auto 0;
        text-align: center;
        order: 1;
    }

    .copyright.desktop-only {
        position: static;
        margin: 10px auto 20px;
        transform: none;
        text-align: center;
        order: 2;
    }

    .right-section {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* 隐藏right-section内的下载和版权信息 */
    .right-section .download-section,
    .right-section .copyright {
        display: none;
    }
}

.copyright.desktop-only {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: #86868b;
    z-index: 10;
}

/* 桌面端隐藏right-section内的下载和版权信息 */
.right-section .download-section,
.right-section .copyright {
    display: none;
}

.download-link {
    color: var(--google-blue);
    text-decoration: none;
    font-family: var(--md-sys-typescale-label-large-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.1px;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
}

.download-link:hover {
    color: var(--google-blue-hover);
    background: var(--google-blue-light);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(1px);
}

.floating-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 160px;
    height: 160px;
    top: 55%;
    right: 12%;
    animation-delay: 2.5s;
}

.floating-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 15%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translateY(-15px) rotate(240deg) scale(0.9);
    }
}

/* Ripple effect for buttons */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 宽度不够时隐藏插画，保持水平布局 */
@media (max-width: 900px) {
    .svg-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .left-section {
        flex: 1;
        padding: 40px 24px;
    }

    .main-title {
        font-size: 48px;
        line-height: 1.1;
    }

    .tagline {
        font-size: 24px;
        line-height: 1.2;
    }

    .right-section {
        flex: 1;
        padding: 24px;
        position: relative;
    }

    .login-container {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
    }

    .left-section {
        flex: 0 0 auto;
        padding: 20px 24px;
        min-height: auto;
    }

    .content-wrapper {
        height: auto;
        padding-top: 0;
    }

    .main-title {
        font-size: 48px;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .tagline {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .svg-container {
        width: 100%;
        height: 50%;
        margin: 10px auto;
    }

    .right-section {
        flex: 1;
        padding: 24px;
        position: relative;
    }

    .login-container {
        padding: 32px 24px;
    }

    /* 在移动端隐藏桌面端固定定位的下载和版权信息 */
    .download-section.desktop-only {
        display: none;
    }

    .copyright.desktop-only {
        display: none;
    }

    /* 显示right-section内的下载和版权信息 */
    .right-section .download-section {
        display: block;
        position: static;
        margin: 20px auto 0;
        text-align: center;
    }

    .right-section .copyright {
        display: block;
        position: static;
        margin: 10px auto 20px;
        transform: none;
        text-align: center;
        font-size: 12px;
        color: #86868b;
    }
}

@media (max-width: 480px) {
    .left-section {
        padding: 15px 16px;
    }

    .main-title {
        font-size: 40px;
        line-height: 1.1;
        margin-bottom: 0.3rem;
    }

    .tagline {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .svg-container {
        margin: 8px auto;
    }
}

@media (max-width: 400px) {
    .svg-container {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}
