body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* 防止滚动 */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    height: 100vh;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('pic/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    z-index: -1; /* 置于背后 */
}

/* 左上角Logo */
.corner-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 100;
}

.corner-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

.form-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Scrollbar styling */
.form-box::-webkit-scrollbar {
    width: 6px;
}

.form-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.form-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.form-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 登录窗口Logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container .logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-toggle {
    display: flex;
    margin-bottom: 20px;
}

.form-toggle button {
    flex-grow: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.form-toggle button.active {
    color: white;
    border-bottom-color: white;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Account type selector */
.account-type-selector {
    margin-bottom: 20px;
}

.account-type-selector > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
}

.account-type-options {
    display: flex;
    gap: 20px;
}

.account-option {
    display: flex;
    align-items: center;
}

.account-option input[type="radio"] {
    margin-right: 8px;
}

.account-option label {
    color: white;
    font-weight: normal;
}

/* Phone number input */
.phone-group .phone-input-container {
    display: flex;
    gap: 10px;
}

.phone-input-container .country-code {
    width: 30%;
    position: relative;
}

/* Custom select styling */
.custom-select {
    width: 100%;
    height: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-select:focus,
.custom-select.select-active {
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Dropdown option styling */
.custom-select option {
    background-color: #2a3b55;
    color: #ffffff;
    padding: 12px;
    font-size: 14px;
    text-shadow: none;
}

/* Firefox specific styling */
@-moz-document url-prefix() {
    .custom-select option {
        background-color: #2a3b55;
        color: #ffffff;
    }
}

/* Webkit browsers (Chrome, Safari) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .custom-select option {
        background-color: #2a3b55 !important;
        color: #ffffff !important;
    }
}

/* Microsoft Edge */
@supports (-ms-ime-align:auto) {
    .custom-select option {
        background-color: #2a3b55;
        color: #ffffff;
    }
}

.phone-input-container input[type="tel"] {
    width: 70%;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.primary-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Copyright information */
.copyright {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Artist credit */
.artist-credit {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .corner-logo {
        top: 20px;
        left: 20px;
    }
    
    .corner-logo .logo-text {
        font-size: 1.5rem;
    }

    .form-box {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .logo-container .logo-text {
        font-size: 2rem;
    }
    
    .artist-credit {
        bottom: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .account-type-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-input-container .country-code,
    .phone-input-container input[type="tel"] {
        width: 100%;
    }
}

/* 消息容器样式 */
.message-container {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

.message.error {
    background-color: rgba(255, 87, 87, 0.9);
    color: white;
    border-left: 4px solid #ff0000;
}

.message.success {
    background-color: rgba(75, 181, 67, 0.9);
    color: white;
    border-left: 4px solid #2e7d32;
}

.message.info {
    background-color: rgba(33, 150, 243, 0.9);
    color: white;
    border-left: 4px solid #0d47a1;
} 