.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.auth-box h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #00c805;
    outline: none;
}

.terms {
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-label a {
    color: #00c805;
    text-decoration: none;
}

.auth-button {
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.auth-button.primary {
    background: #00c805;
    color: white;
}

.auth-button.google {
    background: white;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button.google img {
    width: 20px;
    height: 20px;
}

.auth-button.email-link {
    background: #f8f9fa;
    color: #1a1a1a;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.auth-switch a {
    color: #00c805;
    text-decoration: none;
    font-weight: 500;
}

/* 错误消息样式 */
.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* 成功消息样式 */
.success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* 暗色模式样式 */
[data-theme="dark"] .auth-box {
    background: #1e1e1e;
    color: #ffffff;
}

[data-theme="dark"] .auth-box h2 {
    color: #ffffff;
}

[data-theme="dark"] .auth-subtitle {
    color: #a0a0a0;
}

[data-theme="dark"] .form-group label {
    color: #ffffff;
}

[data-theme="dark"] .form-group input {
    background: #2c2c2c;
    border-color: #2c2c2c;
    color: #ffffff;
}

[data-theme="dark"] .form-group input:focus {
    border-color: #00e606;
}

[data-theme="dark"] .divider span {
    background: #1e1e1e;
    color: #a0a0a0;
}

[data-theme="dark"] .auth-switch {
    color: #a0a0a0;
}

[data-theme="dark"] .auth-button.google {
    background: #2c2c2c;
    border-color: #2c2c2c;
    color: #ffffff;
}

/* 暗色模式下的弹窗样式 */
[data-theme="dark"] .modal-content {
    background-color: #ffffff;
    color: #000000;
}

[data-theme="dark"] .modal-content h2 {
    color: #000000;
}

[data-theme="dark"] .modal-content p {
    color: #000000;
}

/* 暗色模式下的错误信息样式 */
[data-theme="dark"] .error-message {
    color: #000000 !important;
    background-color: #ffffff !important;
}

[data-theme="dark"] .success-message {
    color: #000000 !important;
    background-color: #ffffff !important;
} 