/**
 * 测试版登录页面样式
 */
@import url('global.css');
@import url('../components/toast/toast.css');
@import url('../components/modal/modal.css');

.login-shell {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: grid;
    background-color: var(--surface);
    color: var(--on-surface);
}

@media (min-width: 1024px) {
    .login-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.login-left {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    background-color: #2D2D2D; /* Default dark background for the animated side */
    overflow: hidden;
    color: white;
}

html[data-theme="light"] .login-left {
    background-color: #1a1a1a;
}

html[data-theme="dark"] .login-left {
    background-color: var(--background);
}

@media (min-width: 1024px) {
    .login-left {
        display: flex;
    }
}

.login-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--surface);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    display: flex;
    width: 100%;
    border-radius: 9999px;
    border: 1px solid var(--outline);
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    height: 3rem;
    background-color: var(--surface);
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: flex;
    padding: 0;
}
.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.btn-submit {
    width: 100%;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s, filter 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.btn-submit:hover { 
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-submit:active { filter: brightness(0.9); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

/* Left Background Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 35%),
                      radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 30%);
}

.bg-float-1 {
    position: absolute;
    top: 25%;
    right: 25%;
    width: 16rem;
    height: 16rem;
    background-color: rgba(156, 163, 175, 0.15);
    border-radius: 50%;
    filter: blur(3rem);
    animation: float 12s ease-in-out infinite;
}

.bg-float-2 {
    position: absolute;
    bottom: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background-color: rgba(209, 213, 219, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
    animation: float-reverse 16s ease-in-out infinite;
}

/* Character Base Styles */
.chars-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 500px;
}
.chars-container {
    position: relative;
    width: 550px;
    height: 400px;
}
.char-part {
    position: absolute;
    bottom: 0;
    transition: all 0.7s ease-in-out;
    transform-origin: bottom center;
}
.eyes-container {
    position: absolute;
    display: flex;
    transition: all 0.7s ease-in-out;
}
.eye {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.15s ease-in-out;
    overflow: hidden;
}
.pupil {
    border-radius: 50%;
    transition: transform 0.1s ease-out;
}
