/* 全局样式 */
@font-face {
    font-family: "Figtree"; 
    src: url("./font/figtree.ttf") format("truetype");
    font-weight: normal;         
    font-style: normal;          
    font-display: swap;  
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
}
footer{
    position: fixed;
    color: #767676;
    text-align: center;
    padding: 1rem;
    bottom: 0px;
    right: 0px;
    left: 0px;
    font-size: 11px;
}

header {
    padding: 1rem;
    width: 100%;
    background-color: #151515;
    position: fixed;
    top: 0;
    left: 0;
    height: 65px;
    justify-content: space-between;
    align-items: center;
    display: flex;
    z-index: 999;
}

body {
    font-family: "Figtree";
    background-color: #000;
    color: #ffffff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: url('./img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 320px;
    /* padding: 40px; */
    position: relative;
    top: 130px;
    height: max-content;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 70px;
}

.logo img {
    height: 80px;
}

/* 标题 */
h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

/* 输入框容器 */
.input-container {
    margin-bottom: 23px;
    position: relative;
}

/* 输入框 */
input[type="text"],
input[type="password"] {
    border-radius: 15px;
    background: #262020;
    border: 1px solid #4c4c4c;
    padding-right: 1rem;
    padding-right: 45px;
    padding-left: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
    height: 47px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border: 1px solid #a10417;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5);
}
        
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    background: #262020 !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #4c4c4c !important;
    -webkit-box-shadow: 0 0 0px 1000px #262020 inset !important;
    /* box-shadow: 0 0 0px 1000px #262020 inset !important; */
    background-color: #262020 !important;
    border: 1px solid #4c4c4c !important; 
}
input:-moz-autofill {
    background: #262020 !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #4c4c4c !important;
    /* box-shadow: 0 0 0px 1000px #262020 inset !important; */
    background-color: #262020 !important;
    border: 1px solid #4c4c4c !important; 
}

/* 密码可见性切换按钮 */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #a10417;
}


/* 输入框图标 */
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

input[type="text"] {
    padding-left: 40px;
}

input[type="password"] {
    padding-left: 40px;
}

/* 记住我 */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
}

input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

label {
    cursor: pointer;
    font-size: 14px;
}

.login-button {
    width: 100%;
    height: 42px;
    padding: 12px;
    background-color: #a10417;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 26px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}


.language-selector {
    position: absolute;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-button {
    height: 36px;
    background-color: #1e1e1e;
    border-radius: 50px;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.language-button:hover {
    background-color: #a10417;
    box-shadow: 0 0 15px rgba(230, 25, 25, 0.7);
}

.language-flag {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: none;
    min-width: 120px;
    margin-top: 5px;
}

.language-dropdown.show {
    display: block;
    border: 1px solid #c51515;
    animation: fadeIn 0.3s ease;
    border-radius: 20px;
    z-index: 50;
}

.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: rgba(255, 0, 0, 0.2);
}

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.error-modal.show {
    opacity: 1;
    visibility: visible;
}

.error-content {
    background-color: #000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    text-align: center;
    max-width: 800px;
    min-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.error-modal.show .error-content {
    transform: scale(1);
}

.error-icon {
    font-size: 48px;
    color: #ff0000;
    margin-bottom: 20px;
}

.error-message {
    font-size: 16px;
    margin-bottom: 50px;
}

.confirm-button {
    padding: 10px 20px;
    background-color: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.confirm-button:hover {
    background-color: #cc0000;
}
.inputbg{
    color: #9ca3af;
    padding-left: 0.75rem;
    align-items: center;
    display: flex;
    left: 0px;
    top: 0px;
    bottom: 0px;
    position: absolute;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.loading-overlay.show .loading-content {
    transform: scale(1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff0000;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}
        

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .language-selector {
        top: 15px;
        right: 15px;
    }
    .error-content {
        width: 90%;
        min-width: unset;
    }
}