body {
    background: #1a1a1a;
    color: #fff;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #1a1a1a;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.login-form {
    background: #242424;
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
}

.form-header img {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
}

.form-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.google-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    background: #333;
}

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

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

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #333;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.login-type-switch {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: #2a2a2a;
    padding: 4px;
    border-radius: 30px;
}

.switch-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #888;
}

.switch-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0 16px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: 48px;
    line-height: 48px;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
    line-height: 1;
    background: transparent;
    padding: 0;
    margin: 0;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    transform: translateY(-50%);
    left: 12px;
    font-size: 0.75rem;
    padding: 0 4px;
    background: #242424;
    color: #6366f1;
    line-height: 1;
}

.phone-input-container {
    display: flex;
    gap: 8px;
    position: relative;
}

.country-code-fixed {
    background: #2a2a2a;
    color: #888;
    padding: 0 16px;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    height: 48px;
    line-height: 48px;
}

.phone-input {
    flex: 1;
}

.form-input::placeholder {
    line-height: 48px;
    color: transparent;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.input-status-message {
    margin-top: 4px;
    font-size: 0.85rem;
    background: transparent !important;
}

.input-status-message.success {
    color: #10b981;
}

.input-status-message.error {
    color: #ef4444;
}

.input-status-message.info {
    color: #6366f1;
}

.forgot-password-container {
    text-align: right;
    margin-top: 1rem;
}

.forgot-password {
    color: #10b981;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #34d399;
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.signup-link a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #34d399;
    text-decoration: underline;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-input.error {
    border-color: #ef4444;
}

.notification {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(100vw);
    min-width: 300px;
    max-width: 90vw;
    padding: 16px;
    border-radius: 12px;
    background: #242424;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #333;
}

.notification.show {
    transform: translate(-50%, -50%) translateX(0);
}

.notification.success {
    border-left: 4px solid #52c41a;
    background: #242424;
}

.notification.error {
    border-left: 4px solid #ff4d4f;
    background: #242424;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: #52c41a;
}

.notification.error .notification-icon {
    color: #ff4d4f;
}

.notification-content {
    flex: 1;
}

.notification-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.notification-message {
    margin: 4px 0 0;
    font-size: 14px;
    color: #999;
    line-height: 1.4;
}

.notification-close {
    font-size: 18px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #fff;
}

/* 加载遮罩层样式 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 按钮加载状态 */
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile responsive styles */
@media (max-width: 480px) {
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* 增加选择器优先级 */
    body .header_area,
    body .header_area.navbar_fixed,
    .header_area .main_menu,
    .header_area .navbar {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .login-container {
        padding: 4rem 1rem;
        min-height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    /* 增加选择器优先级 */
    .header_area .navbar-brand,
    .header_area .navbar > .container,
    .header_area .main_menu .navbar {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* 确保导航栏内所有元素都是透明背景 */
    .header_area * {
        background-color: transparent !important;
    }

    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 1001;
    }

    .brand-text {
        font-size: 1.2rem;
        color: #fff;
    }

    .login-form {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .header_area {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: transparent;
        width: 100%;
    }

    .main_menu {
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
    }

    .navbar {
        width: 100%;
        padding: 0;
        background: transparent;
    }

    .navbar > .container {
        width: 100%;
        padding: 0 15px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background: transparent;
    }

    .navbar-brand {
        background: transparent;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .brand-text {
        font-size: 1.2rem;
        color: #fff;
        background: transparent;
    }

    .toast-container {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .navbar-brand img {
        max-height: 40px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    /* 调整表单内部元素的间距 */
    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
    }

    .google-btn {
        margin-bottom: 1rem;
    }

    .divider {
        margin: 1rem 0;
    }

    .login-type-switch {
        margin-bottom: 1.2rem;
    }

    .notification {
        width: calc(100% - 32px);
        min-width: auto;
        margin: 0 16px;
    }
}

/* 添加平板设备的响应式样式 */
@media (min-width: 481px) and (max-width: 768px) {
    /* 同样增加选择器优先级 */
    body .header_area,
    body .header_area.navbar_fixed,
    .header_area .main_menu,
    .header_area .navbar {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
    }

    .header_area .navbar-brand,
    .header_area .navbar > .container,
    .header_area .main_menu .navbar {
        background: transparent !important;
        background-color: transparent !important;
    }

    .header_area * {
        background-color: transparent !important;
    }

    .login-container {
        padding: 4rem 2rem;
    }
    
    .login-form {
        margin-top: 2rem;
    }
} 