/* 认证页面样式 */
.auth-section {
    background: url('/images/auth-bg.png') top center/cover no-repeat;
    justify-content: flex-end;
    padding-bottom: 150px;
}
/* 欢迎页面 Ready 页面 */
.auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin: auto 0;
    padding-bottom: 20px;

}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 0.65rem;
    background: #32353c;
    border: none;
    color: white;
    border-radius: 2px;
    font-size: 0.85rem;
    -webkit-autofill: none;
}

.form-input::placeholder {
    color: #1999ff;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 1px #1999ff;
}

/* 处理 Chrome 浏览器的自动填充背景色 */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #32353c inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* 处理 Firefox 浏览器的自动填充 */
.form-input:autofill {
    background: #32353c !important;
    color: white !important;
}

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

.auth-label-uppercase {
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;

}

.error-message {
    color: #ff4444;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    display: block;
    text-align: left;
}

/* 自定义单选框容器样式 */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.create-account-button {
    background: linear-gradient(to top, #1999ff, #1999ff);
    color: white;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.create-account-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 159, 255, 0.4);
}

.sign-in-link {
    background: linear-gradient(to top, #3d4148, #3d4148);
    color: white;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.sign-in-link:hover {
    background: #3d4148;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 159, 255, 0.4);
}

.contact-us-link {
    display: block;
    margin-top: 1rem;
    color: #1999ff;
    text-decoration: none;
    font-size: 0.85rem;
}

/* 添加媒体查询以适应较小屏幕 */
@media screen and (max-width: 768px) {
    .auth-container {
        max-width: 400px;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media screen and (max-height: 800px) {
    .auth-section {
        padding: 50px 0 30px;
    }
}

@media screen and (max-width: 480px) {
    .auth-section {
        padding: 30px 0 20px;
    }
    .auth-container {
        padding: 0 15px;
    }
}

/* 添加 Edge 特定样式 */
@supports (-ms-ime-align: auto) {
    .auth-section {
        height: 100vh;
        overflow-y: auto;
    }

    .auth-container {
        margin: 50px 0;
    }
}
