/* 基础样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: manipulation;
}

.container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

    .logo img {
        max-width: 210px;
        height: auto;
    }

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.password-container {
    position: relative;
}


.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toggle-password:hover {
    background-color: #f0f0f0 !important;
}


.slider-captcha {
    margin: 25px 0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
    user-select: none;
}

.slider-captcha-track {
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.slider-captcha-success {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #4CAF50;
    transition: width 0.2s ease;
    border-radius: 20px 0 0 20px;
}

.slider-captcha-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s ease;
    touch-action: none;
}

.slider-captcha-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 40px;
    color: #666;
    z-index: 5;
    user-select: none;
    font-size: 14px;
    pointer-events: none;
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #4285f4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #3367d6;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: #4285f4;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #3367d6;
}

.btn-primary:disabled {
    background-color: #a8c7fa;
    cursor: not-allowed;
}

.btn-default {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.btn-default:hover {
    background-color: #e5e5e5;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
    position: relative;
}

.divider::before, .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}


.footer-login {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 14px;
}

.footer-login a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-login a:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .form-control {
        padding: 12px;
    }

    body {
        padding: 10px;
    }
}

/* 性能优化类 */
.will-change {
    will-change: transform;
}
