* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px 0;
}

.login-container {
    width: 100%;
    max-width: 780px;
    padding: 20px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9edf4;
    padding: 52px 48px;
    transition: all 0.3s ease;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    /* background: #1677ff; */
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
}
.logo-icon-m{
    width: 35px;
}
.logo-text {
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
}

.logo-text span {
    font-weight: 400;
    color: #6c7a91;
    font-size: 18px;
    margin-left: 4px;
}

.login-title {
    font-size: 30px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 15px;
    color: #6c7a91;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 26px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.2s ease;
    background-color: #fafcff;
}

.form-input:hover {
    border-color: #cbd5e1;
}

.form-input:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #9aa6b8;
}

.captcha-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.captcha-row .form-input {
    flex: 1;
    height: 48px;
}

.captcha-image {
    width: 140px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #f0f2f5;
}

.captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    color: #4a5a72;
}

.remember-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1677ff;
}

.forgot-link {
    font-size: 15px;
    color: #1677ff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #0f5bbf;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 52px;
    background-color: #1677ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.login-btn:hover {
    background-color: #0f5bbf;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(22, 119, 255, 0.25);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background-color: #94b9f0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-tip {
    text-align: center;
    font-size: 15px;
    color: #6c7a91;
}

.register-link {
    color: #1677ff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s;
}

.register-link:hover {
    color: #0f5bbf;
    text-decoration: underline;
}

.login-error {
    display: none;
}

.error-message {
    display: none;
}

.form-input.error {
    border-color: #f56c6c;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.1);
}

.footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9edf4;
    color: #9aa6b8;
    font-size: 13px;
}

.footer a {
    color: #6c7a91;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    color: #1677ff;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 0;
    }

    .login-container {
        max-width: 100%;
        padding: 16px;
        margin: 20px auto;
    }
    
    .login-card {
        padding: 36px 28px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }
    
    .captcha-row {
        display: flex;
        gap: 10px;
        align-items: center;
        width: 100%;
    }
    
    .captcha-row .form-input {
        flex: 1;
        height: 48px;
        width: auto;
    }
    
    .captcha-image {
        width: 120px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .options-row {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 12px;
    }

    .login-card {
        padding: 28px 20px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .captcha-row {
        gap: 8px;
    }
    
    .captcha-image {
        width: 100px;
    }
    
    .options-row {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }
    
    .form-input, .login-btn {
        height: 46px;
    }
}

@media (max-width: 360px) {
    .captcha-row {
        flex-wrap: wrap;
    }
    
    .captcha-row .form-input {
        width: 100%;
    }
    
    .captcha-image {
        width: 100%;
        height: 46px;
    }
}