* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 30px;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-box form {
    width: 295px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-box .form-group {
    text-align: left;
    padding: 0;
    width: auto;
}

.login-box .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-box form .form-group input[type="text"],
.login-box form .form-group input[type="password"] {
    width: 295px !important;
    max-width: 295px !important;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin: 0;
}

.login-box form .form-group input[type="text"]:focus,
.login-box form .form-group input[type="password"]:focus {
    outline: none;
    border-color: #0071e3;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.captcha-group {
    margin-bottom: 0 !important;
}

.captcha-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input-wrapper input[type="text"] {
    width: 150px !important;
    max-width: 150px !important;
    min-width: 150px !important;
}

.captcha-img {
    width: 120px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #d2d2d7;
}

.login-box form .login-btn {
    width: 295px !important;
    max-width: 295px !important;
    min-width: 295px !important;
    padding: 12px;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-sizing: border-box;
}

.login-box form .login-btn:hover {
    background-color: #0077ed;
}

.login-box form .login-btn:active {
    background-color: #0066cc;
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px;
    }

    .login-box form {
        width: 100%;
        max-width: 295px;
    }

    .login-box form .form-group input[type="text"],
    .login-box form .form-group input[type="password"] {
        padding: 10px;
    }

    .captcha-input-wrapper input[type="text"] {

    }

    .captcha-img {
        width: 100px;
        height: 40px;
    }

    .login-box form .login-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        padding: 10px;
    }
}