* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.avtice:hover {
    font-weight: 700;
    cursor: pointer;
}

input {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 16px;
    color: white;
    caret-color: #3498db;
    width: 100%;
    padding: 8px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

/* 添加防止浏览器自动填充时背景变白的样式 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #1D2125 inset !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 0 0px 1000px #1D2125 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #1D2125 inset, 0 0 0 1000px #1D2125 inset !important;
}

input::placeholder {
    color: rgb(151, 148, 148);
    opacity: 1;
    font-size: 16px;
}

i {
    font-style: normal;
}

.disnone {
    display: none;
}

.disblock {
    display: block;
}

body {
    background: linear-gradient(135deg, #1D2125, #2c3e50);
    position: relative;
    height: 100vh;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

.loginSignup {
    background-color: rgba(30, 35, 40, 0.85);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-group {
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgb(94, 92, 90);
    margin: 25px 0;
    padding: 8px 0;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-bottom: 2px solid #3498db;
}

.input-group i {
    font-size: 20px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: #3498db;
    transition: color 0.3s ease;
}

.input-group:focus-within i {
    color: #ffffff;
}

.input-group .visual {
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    width: auto;
    transition: color 0.3s ease;
}

.input-group .visual:hover {
    color: #ffffff;
}

.hint {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    color: #e9c29c;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 8px;
}

.btn {
    width: 100%;
}

.btn span {
    display: inline-block;
    text-align: center;
    width: 100%;
    background: linear-gradient(to right, #3498db, #2c3e50);
    padding: 15px;
    margin: 25px 0;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn span:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.switch-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-top: 15px;
}

.switch-form span:last-child {
    color: #3498db;
    font-weight: 600;
    cursor: pointer;
}

.indLanguage {
    text-align: center;
    margin-top: 30px;
}

select {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #52595f;
    border-radius: 20px;
    background-color: rgba(29, 33, 37, 0.7);
    font-size: 14px;
    color: rgb(172, 169, 169);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

select::-ms-expand {
    display: none;
}

/* 添加跑马灯边框效果 */
@keyframes border-marquee {
    0% {
        box-shadow: 0 0 0 0px rgba(52, 152, 219, 0.7);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
}

.btn-login-animation {
    position: relative;
    overflow: hidden;
    animation: border-marquee 1s infinite linear;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .loginSignup {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .btn span {
        padding: 12px;
        font-size: 16px;
    }
    
    .input-group {
        margin: 20px 0;
    }
}

@media (max-height: 600px) {
    .login-container {
        align-items: flex-start;
        padding-top: 30px;
    }
}